From a21507f22a0a93fe2b0b67073dd9f847864e49a9 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Tue, 15 Jan 2019 13:08:40 +0100 Subject: [PATCH] Document wSuicuneFrame Also fixed inmediate in PlaceMapNameFrame.FillTopBottom to calculate the amount of loops required. (It fills two tiles in the first iteration, and four in the remaining, hence the `-2` and `+1` part). --- engine/events/map_name_sign.asm | 2 +- engine/movie/title.asm | 4 ++-- wram.asm | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/engine/events/map_name_sign.asm b/engine/events/map_name_sign.asm index 0b6b2b203..7bdbe8e8a 100644 --- a/engine/events/map_name_sign.asm +++ b/engine/events/map_name_sign.asm @@ -242,7 +242,7 @@ PlaceMapNameFrame: ret .FillTopBottom: - ld c, 5 + ld c, ((SCREEN_WIDTH - 2) - 2) / 4 + 1 jr .enterloop .continueloop diff --git a/engine/movie/title.asm b/engine/movie/title.asm index 26b30c3ee..a48b71e62 100644 --- a/engine/movie/title.asm +++ b/engine/movie/title.asm @@ -208,7 +208,7 @@ _TitleScreen: ldh [hBGMapMode], a xor a - ld [wd002], a + ld [wSuicuneFrame], a ; Play starting sound effect call SFXChannelsOff @@ -218,7 +218,7 @@ _TitleScreen: ret SuicuneFrameIterator: - ld hl, wd002 + ld hl, wSuicuneFrame ld a, [hl] ld c, a inc [hl] diff --git a/wram.asm b/wram.asm index 4631475c9..37c82c4cd 100644 --- a/wram.asm +++ b/wram.asm @@ -1710,6 +1710,7 @@ NEXTU ; d002 wTempDayOfWeek:: wApricorns:: wKeepSevenBiasChance:: ; used in the slots to handle the favoring of 7 symbol streaks +wSuicuneFrame:: db ds 2 wStartFlypoint:: db