Skip to content

Commit

Permalink
fix wrong enum use in d_a_agb
Browse files Browse the repository at this point in the history
  • Loading branch information
LagoLunatic committed Sep 27, 2024
1 parent 2abf83b commit 431e1c1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/d/actor/d_a_agb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1084,10 +1084,10 @@ void daAgb_c::Shopping() {
/* 800D12E4-800D1A3C .text FlagsSend__7daAgb_cFUl */
void daAgb_c::FlagsSend(u32 stage_type) {
if (field_0x670 &&
(stage_type == dSv_save_c::STAGE_SEA2 ||
stage_type == dSv_save_c::STAGE_TOTG ||
stage_type == dSv_save_c::STAGE_ET ||
stage_type == dSv_save_c::STAGE_WT))
(stage_type == dStageType_DUNGEON_e ||
stage_type == dStageType_FF1_e ||
stage_type == dStageType_MINIBOSS_e ||
stage_type == dStageType_SEA_e))
{
mFlags.field_0xa_7 = 0;
} else {
Expand Down Expand Up @@ -1170,7 +1170,7 @@ void daAgb_c::FlagsSend(u32 stage_type) {
mFlags.field_0xa_3 = dComIfGs_isEventBit(0x1E40);
mFlags.field_0xa_0 = mIsFree;
mFlags.field_0xb_7 = getFollowTarget();
if (stage_type == dSv_save_c::STAGE_ET) {
if (stage_type == dStageType_MINIBOSS_e) {
mFlags.field_0x8_0 = 1;
} else {
mFlags.field_0x8_0 = 0;
Expand Down Expand Up @@ -1200,7 +1200,7 @@ void daAgb_c::CursorMove(fopAc_ac_c* actor, u32 stage_type) {
daPy_py_c* player = daPy_getPlayerActorClass();

f32 f31;
if (stage_type == dSv_save_c::STAGE_WT) {
if (stage_type == dStageType_SEA_e) {
f31 = field_0x67e ? 50.0f : 781.25f;
} else {
f31 = 25.0f;
Expand All @@ -1221,7 +1221,7 @@ void daAgb_c::CursorMove(fopAc_ac_c* actor, u32 stage_type) {
actor->home.pos.z += f31;
}

if (stage_type == dSv_save_c::STAGE_WT && !field_0x67e) {
if (stage_type == dStageType_SEA_e && !field_0x67e) {
if (actor->home.pos.x < -350000.0f) {
actor->home.pos.x = -350000.0f;
} else if (actor->home.pos.x > 350000.0f) {
Expand Down Expand Up @@ -1454,7 +1454,7 @@ void daAgb_c::modeMove() {
if (getFollowTarget() != 0) {
setTargetID(fpcM_ERROR_PROCESS_ID_e);
setFollowTarget(false);
} else if (stage_type != dSv_save_c::STAGE_ET) {
} else if (stage_type != dStageType_MINIBOSS_e) {
dAttList_c* attList = dComIfGp_getAttention().GetLockonList(0);
if (attList) {
fopAc_ac_c* r3 = attList->getActor();
Expand Down

0 comments on commit 431e1c1

Please sign in to comment.