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
+18 -1
View File
@@ -422,7 +422,7 @@ int daNpc_Aru_c::Draw() {
mdlData_p->getMaterialNodePointer(getEyeballMaterialNo())->setMaterialAnm(mpMatAnm[0]);
}
draw(
return draw(
#if DEBUG
chkAction(&daNpc_Aru_c::test),
#else
@@ -2019,6 +2019,23 @@ int daNpc_Aru_c::talk(void* param_1) {
}
int daNpc_Aru_c::test(void* param_1) {
switch(mMode) {
case 0:
case 1:
speedF = 0.0f;
speed.setall(0.0f);
mMode = 2;
// fallthrough
case 2:
mFaceMotionSeqMngr.setNo(mHIO->param.common.face_expression, -1.0f, 0, 0);
mMotionSeqMngr.setNo(mHIO->param.common.motion, -1.0f, 0, 0);
mJntAnm.lookNone(0);
attention_info.flags = 0;
break;
case 3:
break;
}
return 1;
}
static int daNpc_Aru_Create(void* a_this) {