summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormid-kid <esteve.varela@gmail.com>2019-01-15 13:08:40 +0100
committermid-kid <esteve.varela@gmail.com>2019-01-15 13:08:40 +0100
commita21507f22a0a93fe2b0b67073dd9f847864e49a9 (patch)
tree0b99e69d8f0af65b419ade00f8aac4507e616922
parent5f60cc24cf0935c4908151f0462e67a08d59558d (diff)
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).
-rw-r--r--engine/events/map_name_sign.asm2
-rw-r--r--engine/movie/title.asm4
-rw-r--r--wram.asm1
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