Fix all the zero comparison bit tricks I could find

This commit is contained in:
Tal Hayon
2022-07-22 11:02:49 +03:00
parent fa1d806944
commit 461841290a
12 changed files with 61 additions and 20 deletions
+8 -1
View File
@@ -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;
}