summaryrefslogtreecommitdiff
path: root/src/object
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/object
parent16d8e144888299dc2804579ad4b6c77bef8bd5bb (diff)
Remove boolcast uses from code
Diffstat (limited to 'src/object')
-rw-r--r--src/object/lightableSwitch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/object/lightableSwitch.c b/src/object/lightableSwitch.c
index a8d9dffd..13dae7bc 100644
--- a/src/object/lightableSwitch.c
+++ b/src/object/lightableSwitch.c
@@ -54,11 +54,11 @@ void sub_0809EA80(Entity* this) {
}
void sub_0809EABC(Entity* this) {
- bool32 anySet;
- u32 f;
+ bool32 anySet = 0;
- f = CheckFlags(this->field_0x86.HWORD);
- anySet = BOOLCAST(f);
+ if (CheckFlags(this->field_0x86.HWORD)) {
+ anySet = 1;
+ }
if (this->frameIndex != anySet) {
this->frameIndex = anySet;
}