Simplify weirdly matching division/substraction code

This commit is contained in:
DizzyEggg
2024-03-08 16:19:04 +01:00
parent 82c3e4af14
commit 9e67594dce
6 changed files with 14 additions and 38 deletions
+2 -2
View File
@@ -196,12 +196,12 @@ static void BattleIntroSlide1(u8 taskId)
{
if (gTasks[taskId].tTerrain == BATTLE_TERRAIN_LONG_GRASS)
{
if (gBattle_BG1_Y != 0xFFB0)
if (gBattle_BG1_Y != (u16)(-80))
gBattle_BG1_Y -= 2;
}
else
{
if (gBattle_BG1_Y != 0xFFC8)
if (gBattle_BG1_Y != (u16)(-56))
gBattle_BG1_Y -= 1;
}
}