mirror of
https://github.com/zeldaret/tmc
synced 2026-08-21 06:29:00 -04:00
Fix all the zero comparison bit tricks I could find
This commit is contained in:
@@ -307,7 +307,14 @@ void sub_080842D8(ChestSpawnerEntity* this) {
|
||||
gUnk_0811F880,
|
||||
gUnk_0811F88A,
|
||||
};
|
||||
s32 index = -(-(super->x.HALF.HI & 8) >> 0x1f);
|
||||
s32 index;
|
||||
|
||||
if ((super->x.HALF.HI & 8) != 0) {
|
||||
index = 1;
|
||||
} else {
|
||||
index = 0;
|
||||
}
|
||||
|
||||
if ((super->y.HALF.HI & 8) != 0) {
|
||||
index += 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user