From 486c45dc797b42d1f1ad7f7bdb1c295e6bb36822 Mon Sep 17 00:00:00 2001 From: PokeCodec <67983839+PokeCodec@users.noreply.github.com> Date: Tue, 1 Sep 2020 11:58:26 -0400 Subject: Remove fakematch --- src/battle_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/battle_main.c') diff --git a/src/battle_main.c b/src/battle_main.c index 80e6167c3..95edb3aee 100644 --- a/src/battle_main.c +++ b/src/battle_main.c @@ -245,9 +245,8 @@ void CB2_InitBattleInternal(void) gScanlineEffectRegBuffers[0][i] = 0xF0; gScanlineEffectRegBuffers[1][i] = 0xF0; } - for (i = 80; i < 160; i++) + for (; i < 160; i++) { - asm(""::"r"(i)); // Needed to stop the compiler from optimizing out the loop counter gScanlineEffectRegBuffers[0][i] = 0xFF10; gScanlineEffectRegBuffers[1][i] = 0xFF10; } -- cgit v1.2.3 From bfd7a6d66af787f5d8e15e0556f3155536a6878e Mon Sep 17 00:00:00 2001 From: PokeCodec <67983839+PokeCodec@users.noreply.github.com> Date: Tue, 1 Sep 2020 12:07:39 -0400 Subject: Make invisible a boolean --- src/battle_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/battle_main.c') diff --git a/src/battle_main.c b/src/battle_main.c index 95edb3aee..040d42ef9 100644 --- a/src/battle_main.c +++ b/src/battle_main.c @@ -1292,9 +1292,8 @@ void c2_8011A1C(void) gScanlineEffectRegBuffers[0][i] = 0xF0; gScanlineEffectRegBuffers[1][i] = 0xF0; } - for (i = 80; i < 160; i++) + for (; i < 160; i++) { - asm(""::"r"(i)); // Needed to stop the compiler from optimizing out the loop counter gScanlineEffectRegBuffers[0][i] = 0xFF10; gScanlineEffectRegBuffers[1][i] = 0xFF10; } -- cgit v1.2.3