mirror of
https://github.com/pret/pokeyellow.git
synced 2026-04-26 09:42:51 -05:00
34 lines
712 B
NASM
34 lines
712 B
NASM
; reloads text box tile patterns, current map view, and tileset tile patterns
|
|
ReloadMapData::
|
|
ldh a, [hLoadedROMBank]
|
|
push af
|
|
ld a, [wCurMap]
|
|
call SwitchToMapRomBank
|
|
call DisableLCD
|
|
call LoadTextBoxTilePatterns
|
|
call LoadCurrentMapView
|
|
call LoadTilesetTilePatternData
|
|
call EnableLCD
|
|
pop af
|
|
call BankswitchCommon
|
|
ret
|
|
|
|
; reloads tileset tile patterns
|
|
ReloadTilesetTilePatterns::
|
|
ldh a, [hLoadedROMBank]
|
|
push af
|
|
ld a, [wCurMap]
|
|
call SwitchToMapRomBank
|
|
call DisableLCD
|
|
call LoadTilesetTilePatternData
|
|
call EnableLCD
|
|
pop af
|
|
call BankswitchCommon
|
|
ret
|
|
|
|
; shows the town map and lets the player choose a destination to fly to
|
|
ChooseFlyDestination::
|
|
ld hl, wd72e
|
|
res 4, [hl]
|
|
farjp LoadTownMap_Fly
|