From ced13c2c8d727e01bdb687a4c982ed9296c9e10e Mon Sep 17 00:00:00 2001 From: theo3 Date: Sun, 31 Jan 2021 11:23:42 -0800 Subject: finish main.c --- src/object/lightableSwitch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/object') diff --git a/src/object/lightableSwitch.c b/src/object/lightableSwitch.c index ecc6449e..16609d50 100644 --- a/src/object/lightableSwitch.c +++ b/src/object/lightableSwitch.c @@ -60,7 +60,7 @@ void sub_0809EABC(Entity* this) { u32 f; f = CheckFlags(this->field_0x86.HWORD); - anySet = (-f | f) >> 0x1F; + anySet = BOOLCAST(f); if (this->frameIndex != anySet) { this->frameIndex = anySet; } -- cgit v1.2.3