summaryrefslogtreecommitdiff
path: root/src/d/actor/d_a_npc_blue_ns.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-12-07 14:26:55 -0500
committerGitHub <noreply@github.com>2025-12-07 12:26:55 -0700
commit40a8b9ed54e1336fcde0a50c88a5622c9cafc4db (patch)
tree1434acd5e9aece490c60e8ed8b95365891e1f29a /src/d/actor/d_a_npc_blue_ns.cpp
parentcd94afafa0158278937dc2570badf48ec710cf0a (diff)
d_a_npc_blue_ns OK (#2924)
* Match daNpcBlueNS_c::_Execute * Cleanup loop * d_a_npc_blue_ns OK
Diffstat (limited to 'src/d/actor/d_a_npc_blue_ns.cpp')
-rw-r--r--src/d/actor/d_a_npc_blue_ns.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/d/actor/d_a_npc_blue_ns.cpp b/src/d/actor/d_a_npc_blue_ns.cpp
index 31a2848ca1..c0f4d5f032 100644
--- a/src/d/actor/d_a_npc_blue_ns.cpp
+++ b/src/d/actor/d_a_npc_blue_ns.cpp
@@ -216,8 +216,7 @@ int daNpcBlueNS_c::Execute() {
return 1;
}
-// NONMATCHING - small regalloc
-int daNpcBlueNS_c::_Execute() {
+void daNpcBlueNS_c::_Execute() {
setParam();
if (main()) {
@@ -255,7 +254,10 @@ int daNpcBlueNS_c::_Execute() {
field_0x9f3 = 0;
for (int i = 0; i < 5; i++) {
- if ((mAttnChangeTimer == 0 || mAttnIdx != i) && mAttnActorTimer[i] != 0 && cLib_calcTimer<int>(&mAttnActorTimer[i]) == 0) {
+ if (mAttnChangeTimer != 0 && mAttnIdx == i) {
+ continue;
+ }
+ if (mAttnActorTimer[i] != 0 && cLib_calcTimer<int>(&mAttnActorTimer[i]) == 0) {
mAttnActor[i].remove();
}
}