summaryrefslogtreecommitdiff
path: root/src/d/d_stage.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2024-10-10 16:10:16 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2024-10-10 16:10:16 -0400
commitd0990e3271f038a7f09913eb56434590e1eb674f (patch)
treed3cef8d704e27ea0d7ddc312f09e616795ad0594 /src/d/d_stage.cpp
parent2310bc5557363a1edc18584d4ece79f62369deb9 (diff)
d_a_bk work, FILI inline cleanup
Diffstat (limited to 'src/d/d_stage.cpp')
-rw-r--r--src/d/d_stage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/d/d_stage.cpp b/src/d/d_stage.cpp
index ff9746be..e93a4494 100644
--- a/src/d/d_stage.cpp
+++ b/src/d/d_stage.cpp
@@ -338,7 +338,7 @@ dStage_darkStatus_c* dStage_roomControl_c::getDarkStatus() {
if (plist_p == NULL)
return NULL;
- int idx = (plist_p->mParam & 0x78) >> 3;
+ int idx = dStage_FileList_dt_DarkNo(plist_p);
return &mDarkStatus[idx];
}
@@ -348,7 +348,7 @@ u32 dStage_roomControl_c::getDarkMode() {
dStage_FileList_dt_c* plist_p = pRoomStatus->mRoomDt.mpFileList;
u8 mode = 0;
- if (plist_p != NULL && (plist_p->mParam & 1) != 0)
+ if (plist_p != NULL && dStage_FileList_dt_CheckDarkOn(plist_p) != 0)
mode = 1;
return mode;
}