summaryrefslogtreecommitdiff
path: root/src/d/actor/d_a_wall.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-02-27 18:14:50 -0500
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2025-02-27 18:14:50 -0500
commitc61fe4a335fb2d80e54d5ac2ca03fdc542693a38 (patch)
tree7914fc4c4d2ee8749c01e97ac7fd1d9f8a56b566 /src/d/actor/d_a_wall.cpp
parentf2264eea7c3eb834f1f961b45cf690d0ceab8b0a (diff)
Use "switch no" instead of "switch id/index"
Diffstat (limited to 'src/d/actor/d_a_wall.cpp')
-rw-r--r--src/d/actor/d_a_wall.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/d/actor/d_a_wall.cpp b/src/d/actor/d_a_wall.cpp
index 8e0820e1..a52b3090 100644
--- a/src/d/actor/d_a_wall.cpp
+++ b/src/d/actor/d_a_wall.cpp
@@ -132,7 +132,7 @@ void daWall_c::CreateInit() {
dComIfG_Bgsp()->Regist(mpBgW, this);
set_mtx();
mpBgW->Move();
- mSwitchIndex = fopAcM_GetParam(this) & 0xFF;
+ mSwitchNo = fopAcM_GetParam(this) & 0xFF;
mState = false;
}
@@ -140,9 +140,9 @@ void daWall_c::CreateInit() {
s32 daWall_c::_create() {
fopAcM_SetupActor(this, daWall_c);
mType = fopAcM_GetParam(this) >> 8;
- mSwitchIndex = fopAcM_GetParam(this) & 0xFF;
- bool isSwitch = dComIfGs_isSwitch(mSwitchIndex, fopAcM_GetHomeRoomNo(this));
- if (isSwitch || mSwitchIndex == 0xff) {
+ mSwitchNo = fopAcM_GetParam(this) & 0xFF;
+ bool isSwitch = dComIfGs_isSwitch(mSwitchNo, fopAcM_GetHomeRoomNo(this));
+ if (isSwitch || mSwitchNo == 0xff) {
return cPhs_ERROR_e;
}
@@ -293,8 +293,8 @@ void daWall_c::set_effect() {
mBreakCounter = 1;
mState = 1;
dComIfG_Bgsp()->Release(mpBgW);
- if (mSwitchIndex != 0xFF)
- dComIfGs_onSwitch(mSwitchIndex, fopAcM_GetHomeRoomNo(this));
+ if (mSwitchNo != 0xFF)
+ dComIfGs_onSwitch(mSwitchNo, fopAcM_GetHomeRoomNo(this));
}
/* 00000F74-00000FE4 .text set_se__8daWall_cFv */