Use flag bank enum where possible

This commit is contained in:
Tal Hayon
2022-05-11 20:10:25 +03:00
parent 4141d3e573
commit 6654cc3ffc
8 changed files with 19 additions and 31 deletions
+2 -2
View File
@@ -1178,9 +1178,9 @@ void sub_08095F38(Object6AEntity* this) {
void sub_08096028(Object6AEntity* this) {
u32 type2 = 6;
if (!CheckLocalFlagByBank(768, 123))
if (!CheckLocalFlagByBank(FLAG_BANK_3, 123))
type2 = 4;
if (!CheckLocalFlagByBank(768, 122))
if (!CheckLocalFlagByBank(FLAG_BANK_3, 122))
type2 = 3;
CreateObject(OBJECT_6A, 0x1F, type2);
}
+2 -2
View File
@@ -283,8 +283,8 @@ typedef struct {
} struct_gUnk_08122898;
const struct_gUnk_08122898 gUnk_08122898[] = {
{ 0x200, 0xa1, 0xa2 },
{ 0x8c0, 0x6f, 0x70 },
{ FLAG_BANK_2, 0xa1, 0xa2 },
{ FLAG_BANK_10, 0x6f, 0x70 },
};
u32 sub_080932D8(u32 param_1) {