mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-19 05:02:12 -04:00
fix functions not returning values (#2942)
* fix functions not returning values * implement functions that should return values
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user