diff options
| author | Tal Hayon <talhayon1@gmail.com> | 2022-02-10 18:59:54 +0200 |
|---|---|---|
| committer | Tal Hayon <talhayon1@gmail.com> | 2022-02-11 14:55:35 +0200 |
| commit | ad2b1bc0c3d85cb34b70e1750507a12b462c2ac7 (patch) | |
| tree | 2788900f0ea1c64dd464e7c33b9d05ed97038588 /src/roomInit.c | |
| parent | 16d8e144888299dc2804579ad4b6c77bef8bd5bb (diff) | |
Remove boolcast uses from code
Diffstat (limited to 'src/roomInit.c')
| -rw-r--r-- | src/roomInit.c | 6 |
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; } |
