Skip to content

Commit

Permalink
Fix renamed function missing from last commit
Browse files Browse the repository at this point in the history
* LegoObject_AttackPath was renamed last commit, but wasn't updated in LegoObject_Callback_Update.
  • Loading branch information
trigger-segfault committed Jun 21, 2023
1 parent d3a91ae commit 8e1059b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openlrr/game/object/Object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2675,15 +2675,15 @@ bool32 __cdecl LegoRR::LegoObject_Callback_Update(LegoObject* liveObj, void* pEl

if (liveObj->flags2 & LIVEOBJ2_UNK_200000) {
if (liveObj->flags2 & LIVEOBJ2_TRIGGERFRAMECALLBACK) {
LegoObject_FUN_0043aeb0(liveObj);
LegoObject_AttackPath(liveObj);
}

if (liveObj->animTime > 0.0f) {
liveObj->flags2 &= ~LIVEOBJ2_UNK_200000;

AITask_LiveObject_SetAITaskUnk(liveObj, AITask_Type_AttackPath, nullptr, true);
if (!(liveObj->flags2 & LIVEOBJ2_UNK_20000)) {
LegoObject_FUN_0043aeb0(liveObj);
LegoObject_AttackPath(liveObj);
}
}
goto objectupdate_end;
Expand Down

0 comments on commit 8e1059b

Please sign in to comment.