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 b278ac8fb0
commit d9ca13c7b5
40 changed files with 146 additions and 61 deletions
+18 -1
View File
@@ -831,7 +831,24 @@ int daNpc_Doc_c::talk(void* param_0) {
}
int daNpc_Doc_c::test(void* i_this) {
// DEBUG NONMATCHING
int ret = 0;
switch(mMode) {
case 0:
case 1:
speedF = 0.0f;
speed.setall(0.0f);
mMode = 2;
// fallthrough
case 2:
mFaceMotionSeqMngr.setNo(mpHIO->m.common.face_expression, -1.0f, 0, 0);
mMotionSeqMngr.setNo(mpHIO->m.common.motion, -1.0f, 0, 0);
mJntAnm.lookNone(0);
attention_info.flags = 0;
break;
case 3:
break;
}
return ret;
}
static int daNpc_Doc_Create(void* i_this) {