diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-12-24 19:57:36 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-24 16:57:36 -0800 |
| commit | 229527daf71c76965ef0735abca530cee68b7358 (patch) | |
| tree | 0325055c01866d359b1556a2cbc6b65cbd238466 /src/d/actor/d_a_e_po.cpp | |
| parent | cefe919b8d39cb5b60d79b1dc7452e80abdf9657 (diff) | |
Resolve all gameInfo fakematches (#2995)
* Clean up various inlines/fakematches/comments
* Copy OptRuby inline name from TWW debug
* Resolve all dEvt_control_c related fakematches, return pointer instead of reference
* Fix some more missing inline usages
Diffstat (limited to 'src/d/actor/d_a_e_po.cpp')
| -rw-r--r-- | src/d/actor/d_a_e_po.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/d/actor/d_a_e_po.cpp b/src/d/actor/d_a_e_po.cpp index cd6099ef04..6db6e2b4b7 100644 --- a/src/d/actor/d_a_e_po.cpp +++ b/src/d/actor/d_a_e_po.cpp @@ -1231,21 +1231,10 @@ static void e_po_dead(e_po_class* i_this) { i_this->mType += 1; case 51: -#if VERSION != VERSION_SHIELD_DEBUG - // TODO: gameInfo fake match to force reuse of pointer - dComIfG_play_c* play = &g_dComIfG_gameInfo.play; - if (play->getEvent().runCheck()) -#else - if (dComIfGp_event_runCheck()) -#endif - { + if (dComIfGp_event_runCheck()) { if (a_this->eventInfo.checkCommandDemoAccrpt()) { if (dComIfGp_getEventManager().endCheck(i_this->field_0x762) != 0) { -#if VERSION != VERSION_SHIELD_DEBUG - play->getEvent().reset(); -#else dComIfGp_event_reset(); -#endif } else { if (strcmp(dComIfGp_getEventManager().getRunEventName(), "DEFAULT_GETITEM") == 0 && @@ -1259,7 +1248,7 @@ static void e_po_dead(e_po_class* i_this) { } } } else if (i_this->field_0x75B != 0) { - if (dComIfGp_getEvent().isOrderOK()) { + if (dComIfGp_getEvent()->isOrderOK()) { if (!a_this->eventInfo.checkCommandDemoAccrpt()) { fopAcM_orderPotentialEvent(a_this, 2, -1, 0); a_this->eventInfo.onCondition(dEvtCnd_CANDEMO_e); |
