summaryrefslogtreecommitdiff
path: root/src/roomInit.c
diff options
context:
space:
mode:
authorTal Hayon <talhayon1@gmail.com>2022-02-10 18:59:54 +0200
committerTal Hayon <talhayon1@gmail.com>2022-02-11 14:55:35 +0200
commitad2b1bc0c3d85cb34b70e1750507a12b462c2ac7 (patch)
tree2788900f0ea1c64dd464e7c33b9d05ed97038588 /src/roomInit.c
parent16d8e144888299dc2804579ad4b6c77bef8bd5bb (diff)
Remove boolcast uses from code
Diffstat (limited to 'src/roomInit.c')
-rw-r--r--src/roomInit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/roomInit.c b/src/roomInit.c
index fc86e9ca..456f318e 100644
--- a/src/roomInit.c
+++ b/src/roomInit.c
@@ -4531,8 +4531,10 @@ void sub_StateChange_SimonsSimulation_Main(void) {
u32 r;
u32 index;
u32 tmp;
- tmp = CheckGlobalFlag(LV4_CLEAR);
- index = BOOLCAST(tmp);
+ index = 0;
+ if (CheckGlobalFlag(LV4_CLEAR)) {
+ index = 1;
+ }
if (CheckGlobalFlag(LV5_CLEAR)) {
index = 2;
}