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_npc_ks.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_npc_ks.cpp')
| -rw-r--r-- | src/d/actor/d_a_npc_ks.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/d/actor/d_a_npc_ks.cpp b/src/d/actor/d_a_npc_ks.cpp index 5e6e00844a..3d65fb561d 100644 --- a/src/d/actor/d_a_npc_ks.cpp +++ b/src/d/actor/d_a_npc_ks.cpp @@ -5811,7 +5811,6 @@ static int npc_ks_fsdemo(npc_ks_class* i_this) { int frame = i_this->model->getFrame(); int iVar1 = 0; s16 sVar1 = 0x1000; - s16 range; i_this->field_0x5fc = 0; i_this->field_0xaec = 1; @@ -5936,7 +5935,7 @@ static int npc_ks_fsdemo(npc_ks_class* i_this) { } iVar1 = 1; - range = actor->current.angle.y - i_this->target_angle; + s16 range = actor->current.angle.y - i_this->target_angle; if ((range > 0x3000 || range < -0x3000) && i_this->mode < 22) { anm_init(i_this, 28, 3.0f, 0, 1.0f); i_this->mode = 22; @@ -6000,9 +5999,7 @@ static int npc_ks_fsdemo(npc_ks_class* i_this) { fopAcM_OnStatus(actor, 0); cLib_onBit<u32>(actor->attention_info.flags, fopAc_AttnFlag_SPEAK_e | fopAc_AttnFlag_TALK_e); actor->eventInfo.onCondition(dEvtCnd_CANTALK_e); - // TODO: gameInfo fake match to force reuse of pointer - dComIfG_play_c* play = &g_dComIfG_gameInfo.play; - if (play->getEvent().runCheck()) { + if (dComIfGp_event_runCheck()) { if (actor->eventInfo.checkCommandTalk()) { if (i_this->field_0xaee == 0) { i_this->msg_flow.init(actor, 0x74, 0, NULL); @@ -6010,7 +6007,7 @@ static int npc_ks_fsdemo(npc_ks_class* i_this) { } if (i_this->msg_flow.doFlow(actor, NULL, 0)) { - play->getEvent().reset(); + dComIfGp_event_reset(); i_this->field_0xaee = 0; } } |
