Use magic code macros

Co-authored-by: Faschz <faschz@gmail.com>
This commit is contained in:
AntonioCastelli
2021-12-01 19:25:15 -08:00
committed by GitHub
co-authored by Faschz
parent ff307982e5
commit b3f4cce2f5
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -656,7 +656,7 @@ void func_8000E2B4(void) {
if (get_filtered_cheats() & CHEAT_BIG_CHARACTERS) {
player->scale *= 1.4f;
}
if ((get_filtered_cheats() & 0x20) != 0) {
if (get_filtered_cheats() & CHEAT_SMALL_CHARACTERS) {
player->scale *= 0.714f;
}
player->unk3C_a.unk3C = 0;
+6 -6
View File
@@ -1202,15 +1202,15 @@ void func_8003DFCC(Object *arg0, unknown_struct_8003DFCC *arg1) {
arg0->unk4C->unk11 = 4;
arg0->unk4C->unk10 = 0x14;
temp_v0 = get_filtered_cheats();
if (temp_v0 & 0x20000) {
if (temp_v0 & CHEAT_ALL_BALLOONS_ARE_BLUE) {
arg1->unk9 = 0U;
} else if (temp_v0 & 0x08000) {
} else if (temp_v0 & CHEAT_ALL_BALLOONS_ARE_RED) {
arg1->unk9 = 1U;
} else if (temp_v0 & 0x10000) {
} else if (temp_v0 & CHEAT_ALL_BALLOONS_ARE_GREEN) {
arg1->unk9 = 2U;
} else if (temp_v0 & 0x40000) {
} else if (temp_v0 & CHEAT_ALL_BALLOONS_ARE_YELLOW) {
arg1->unk9 = 3U;
} else if (temp_v0 & 0x80000) {
} else if (temp_v0 & CHEAT_ALL_BALLOONS_ARE_RAINBOW) {
arg1->unk9 = 4U;
}
if ((s32) arg1->unk8 >= 6) {
@@ -1230,7 +1230,7 @@ void func_8003DFCC(Object *arg0, unknown_struct_8003DFCC *arg1) {
arg0->unk64->unk4 = 0;
arg0->unk64->unk0_a.unk0 = arg0->scale;
arg0->unk7C.word = 0;
if ((get_filtered_cheats() & 0x800) != 0) {
if (get_filtered_cheats() & CHEAT_DISABLE_WEAPONS) {
gParticlePtrList_addObject(arg0);
}
}