summaryrefslogtreecommitdiff
path: root/src/d/actor/d_a_e_hp.cpp
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2025-09-08 02:01:20 -0700
committerGitHub <noreply@github.com>2025-09-08 12:01:20 +0300
commit52aa5f677f722f14f10298a3ebe1e355a4c26938 (patch)
tree583eb03de69d9a2232be573fd4fe5f4e5380e417 /src/d/actor/d_a_e_hp.cpp
parentcbe5aaca8f2cb2e5046166b79a46de1e97f82730 (diff)
scannon / scannon_crs / scannon_ten done (#2632)
* scannon done * scannon_crs done * scannon_ten done * pr * attention debug stuff * attn flags * fix build
Diffstat (limited to 'src/d/actor/d_a_e_hp.cpp')
-rw-r--r--src/d/actor/d_a_e_hp.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/d/actor/d_a_e_hp.cpp b/src/d/actor/d_a_e_hp.cpp
index d30c839bad..7af721d871 100644
--- a/src/d/actor/d_a_e_hp.cpp
+++ b/src/d/actor/d_a_e_hp.cpp
@@ -183,7 +183,7 @@ int daE_HP_c::draw() {
attention_info.distances[fopAc_attn_BATTLE_e] = 0x04;
fopAcM_SetGroup(this, 2);
fopAcM_OnStatus(this, 0);
- attention_info.flags = attention_info.flags | 4;
+ attention_info.flags |= fopAc_AttnFlag_BATTLE_e;
}
J3DModel* model = mpMorfSO->getModel();
@@ -929,7 +929,7 @@ void daE_HP_c::action() {
if (field_0x790 > 250.0f) {
unkXyz1 = home.pos - player->current.pos;
fopAcM_OnStatus(this, 0);
- attention_info.flags |= 0x4;
+ attention_info.flags |= fopAc_AttnFlag_BATTLE_e;
if (unkXyz1.abs() < mDisHani) {
if (abs((s16)(current.angle.y - fopAcM_searchPlayerAngleY(this))) < 0x4000 &&
@@ -945,7 +945,7 @@ void daE_HP_c::action() {
}
} else {
fopAcM_OffStatus(this, 0);
- attention_info.flags = attention_info.flags & 0xfffffffb;
+ attention_info.flags &= ~fopAc_AttnFlag_BATTLE_e;
}
cLib_addCalcAngleS2(&field_0x7aa, angleDiff, 8, 0x400);
@@ -1063,7 +1063,7 @@ int daE_HP_c::execute() {
fopAcM_SetGroup(this, 0);
fopAcM_OffStatus(this, 0);
- attention_info.flags &= ~0x4;
+ attention_info.flags &= ~fopAc_AttnFlag_BATTLE_e;
if (field_0x78b == 0) {
field_0x790 = 0.0f;
@@ -1081,7 +1081,7 @@ int daE_HP_c::execute() {
fopAcM_SetGroup(this, 0);
fopAcM_OffStatus(this, 0);
- attention_info.flags &= ~0x4;
+ attention_info.flags &= ~fopAc_AttnFlag_BATTLE_e;
if (field_0x78b == 0) {
field_0x790 = 0.0f;
@@ -1099,7 +1099,7 @@ int daE_HP_c::execute() {
fopAcM_SetGroup(this, 2);
fopAcM_OnStatus(this, 0);
- attention_info.flags = attention_info.flags | 4;
+ attention_info.flags |= fopAc_AttnFlag_BATTLE_e;
}
if (field_0x71c != 0) {
@@ -1262,7 +1262,7 @@ int daE_HP_c::create() {
home.pos.y = current.pos.y + 100.0f;
arg0 = 0x02;
}
- attention_info.flags = 0x4;
+ attention_info.flags = fopAc_AttnFlag_BATTLE_e;
fopAcM_SetMtx(this, mpMorfSO->getModel()->getBaseTRMtx());
fopAcM_SetMin(this, -200.0f, -200.0f, -200.0f);
@@ -1309,12 +1309,12 @@ int daE_HP_c::create() {
if (BREG_S(0) != 0 || mNight == 0 || dKy_daynight_check()) {
attention_info.distances[fopAc_attn_BATTLE_e] = 0x04;
fopAcM_OffStatus(this, 0);
- attention_info.flags &= ~0x4;
+ attention_info.flags &= ~fopAc_AttnFlag_BATTLE_e;
} else {
attention_info.distances[fopAc_attn_BATTLE_e] = 0;
fopAcM_SetGroup(this, 0);
fopAcM_OffStatus(this, 0);
- attention_info.flags &= ~0x4;
+ attention_info.flags &= ~fopAc_AttnFlag_BATTLE_e;
}
mtx_set();