atdoor inlines

This commit is contained in:
LagoLunatic
2025-07-15 15:22:38 -04:00
parent 0a86117a3b
commit 7b010f07c7
7 changed files with 95 additions and 79 deletions
+5 -5
View File
@@ -79,15 +79,15 @@ BOOL daMtoge_c::CreateInit() {
tevStr.mRoomNo = fopAcM_GetRoomNo(this);
if (sw == 0xFF) {
mState = ACT_WAIT;
mAction = ACT_WAIT;
} else if (dComIfGs_isSwitch(sw + 1, fopAcM_GetRoomNo(this))) {
mState = ACT_WAIT;
mAction = ACT_WAIT;
mHeightOffset = -300.0f;
} else if (!dComIfGs_isSwitch(sw, fopAcM_GetRoomNo(this))) {
mState = ACT_HIND;
mAction = ACT_HIND;
mHeightOffset = -300.0f;
} else {
mState = ACT_ARRIVAL;
mAction = ACT_ARRIVAL;
}
calcMtx();
@@ -184,7 +184,7 @@ BOOL daMtoge_c::execute() {
daMtoge_actionDown,
};
l_action[mState](this);
l_action[mAction](this);
return TRUE;
}