diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-04-16 01:30:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-16 01:30:03 -0400 |
commit | c1da6b29bc853df1a42f08adb9b141de747dae55 (patch) | |
tree | 4a29484dd11d60bb13edc449adaa2e409f444af4 /src/contest.c | |
parent | 70d0b81fe08e4b3baa5c3c7f8e81909c74477eb7 (diff) | |
parent | f94540c2b875cff0085149b95728d2f0a0c610eb (diff) |
Merge pull request #1405 from GriffinRichards/constants-display
Add more usage of DISPLAY constants, misc REG constants
Diffstat (limited to 'src/contest.c')
-rw-r--r-- | src/contest.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/contest.c b/src/contest.c index f5326663f..246fc1e50 100644 --- a/src/contest.c +++ b/src/contest.c @@ -1393,7 +1393,7 @@ static void Task_RaiseCurtainAtStart(u8 taskId) break; case 1: *(s16*)&gBattle_BG1_Y += 7; - if ((s16)gBattle_BG1_Y <= 160) + if ((s16)gBattle_BG1_Y <= DISPLAY_HEIGHT) break; gTasks[taskId].data[0]++; break; @@ -1513,8 +1513,8 @@ static void Task_ShowMoveSelectScreen(u8 taskId) u8 i; u8 moveName[32]; - gBattle_BG0_Y = 160; - gBattle_BG2_Y = 160; + gBattle_BG0_Y = DISPLAY_HEIGHT; + gBattle_BG2_Y = DISPLAY_HEIGHT; for (i = 0; i < MAX_MON_MOVES; i++) { @@ -2681,7 +2681,7 @@ static void Task_WaitForOutOfTimeMsg(u8 taskId) { SetBgForCurtainDrop(); gBattle_BG1_X = 0; - gBattle_BG1_Y = 160; + gBattle_BG1_Y = DISPLAY_HEIGHT; PlaySE12WithPanning(SE_CONTEST_CURTAIN_FALL, 0); gTasks[taskId].data[0] = 0; gTasks[taskId].func = Task_DropCurtainAtAppealsEnd; |