fix functions not returning values (#2942)

* fix functions not returning values

* implement functions that should return values
This commit is contained in:
Jcw87
2025-12-11 15:31:44 -08:00
committed by GitHub
parent 2c6986f1cc
commit ae4ad9f477
40 changed files with 146 additions and 61 deletions
+3 -3
View File
@@ -983,7 +983,7 @@ void daNpc_Post_c::drawOtherMdl() {
}
}
BOOL daNpc_Post_c::setFlagAnm(int i_idx, int i_attr, f32 i_morf) {
bool daNpc_Post_c::setFlagAnm(int i_idx, int i_attr, f32 i_morf) {
static daNpc_GetParam1 flagAnmData[13] = {
{BCK_POST_FLAG_WAIT_A, POST},
{BCK_POST_FLAG_RUN, POST1},
@@ -1011,12 +1011,12 @@ BOOL daNpc_Post_c::setFlagAnm(int i_idx, int i_attr, f32 i_morf) {
}
}
return TRUE;
return true;
}
bool daNpc_Post_c::afterSetMotionAnm(int i_idx, int i_attr, f32 i_morf, int param_4) {
f32 morf = mCreating == true ? 0.0f : i_morf;
setFlagAnm(i_idx, i_attr, morf);
return setFlagAnm(i_idx, i_attr, morf);
}
BOOL daNpc_Post_c::selectAction() {