Fix Sepia City flypoint

HOW WERE YOU BUILDING?????
This commit is contained in:
Llinos Evans 2024-07-26 13:28:14 +01:00
parent e43decef70
commit fa99cbc839
2 changed files with 4 additions and 3 deletions

View file

@ -141,6 +141,7 @@ DEF KANTO_FLYPOINT EQU const_value
const FLY_INDIGO const FLY_INDIGO
DEF NIHON_FLYPOINT EQU const_value DEF NIHON_FLYPOINT EQU const_value
const FLY_SILENT_HILLS const FLY_SILENT_HILLS
const FLY_OLD_CITY
DEF NUM_FLYPOINTS EQU const_value DEF NUM_FLYPOINTS EQU const_value
DEF MAX_OUTDOOR_SPRITES EQU 23 ; see engine/overworld/overworld.asm DEF MAX_OUTDOOR_SPRITES EQU 23 ; see engine/overworld/overworld.asm

View file

@ -764,7 +764,7 @@ TownMap_GetKantoLandmarkLimits:
TownMap_GetNihonLandmarkLimits: TownMap_GetNihonLandmarkLimits:
ld a, [wStatusFlags] ld a, [wStatusFlags]
ld d, LANDMARK_SILENT_HILLS ld d, LANDMARK_SILENT_HILLS
ld e, LANDMARK_SILENT_HILLS ; Gonna need another map. ld e, LANDMARK_WHITE_CITY ; Gonna need another map.
ret ret
PokegearRadio_Init: PokegearRadio_Init:
@ -2375,12 +2375,12 @@ FlyMap:
call HasVisitedSpawn call HasVisitedSpawn
and a and a
jr z, .NoKanto jr z, .NoKanto
; Kanto's map is only loaded if we've visited Indigo Plateau ; Nihon's map is only loaded if we've visited Silent Hills
ld a, NIHON_FLYPOINT ; first Nihon flypoint ld a, NIHON_FLYPOINT ; first Nihon flypoint
ld [wStartFlypoint], a ld [wStartFlypoint], a
ld a, NUM_FLYPOINTS - 1 ; last Nihon flypoint ld a, NUM_FLYPOINTS - 1 ; last Nihon flypoint
ld [wEndFlypoint], a ld [wEndFlypoint], a
ld [wTownMapPlayerIconLandmark], a ; last one is default (Indigo Plateau) ld [wTownMapPlayerIconLandmark], a ; last one is default (Silent Hills)
; Fill out the map ; Fill out the map
call FillNihonMap call FillNihonMap
call .MapHud call .MapHud