map_header → map_def; map_header_2 → map_data

This commit is contained in:
Remy Oukaour
2018-01-16 22:57:19 -05:00
parent 3d0e1819e9
commit bf074f3598
421 changed files with 2698 additions and 2699 deletions

View File

@@ -340,7 +340,7 @@ FadeToMapMusic:: ; 3cbc
push bc
push af
call GetMapMusic
call GetMapMusic_MaybeSpecial
ld a, [wMapMusic]
cp e
jr z, .done
@@ -368,7 +368,7 @@ PlayMapMusic:: ; 3cdf
push bc
push af
call GetMapMusic
call GetMapMusic_MaybeSpecial
ld a, [wMapMusic]
cp e
jr z, .done
@@ -402,7 +402,7 @@ EnterMapMusic:: ; 3d03
ld a, [PlayerState]
cp PLAYER_BIKE
jr z, .play
call GetMapMusic
call GetMapMusic_MaybeSpecial
.play
push de
ld de, MUSIC_NONE
@@ -495,10 +495,10 @@ SpecialMapMusic:: ; 3d62
ret
; 3d97
GetMapMusic:: ; 3d97
GetMapMusic_MaybeSpecial:: ; 3d97
call SpecialMapMusic
ret c
call GetMapHeaderMusic
call GetMapMusic
ret
; 3d9f

File diff suppressed because it is too large Load Diff

View File

@@ -2,7 +2,7 @@ CheckTrainerBattle2:: ; 3600
ld a, [hROMBank]
push af
call SwitchToMapScriptHeaderBank
call SwitchToMapScriptsBank
call CheckTrainerBattle
pop bc
@@ -110,7 +110,7 @@ TalkToTrainer:: ; 3674
ld [EngineBuffer3], a
LoadTrainer_continue:: ; 367e
call GetMapScriptHeaderBank
call GetMapScriptsBank
ld [EngineBuffer1], a
ld a, [hLastTalked]
@@ -120,8 +120,8 @@ LoadTrainer_continue:: ; 367e
add hl, bc
ld a, [EngineBuffer1]
call GetFarHalfword
ld de, wTempTrainerHeader
ld bc, wTempTrainerHeaderEnd - wTempTrainerHeader
ld de, wTempTrainer
ld bc, wTempTrainerEnd - wTempTrainer
ld a, [EngineBuffer1]
call FarCopyBytes
xor a
@@ -221,7 +221,7 @@ CheckTrainerFlag:: ; 36f5
ld a, [hli]
ld h, [hl]
ld l, a
call GetMapScriptHeaderBank
call GetMapScriptsBank
call GetFarHalfword
ld d, h
ld e, l
@@ -255,7 +255,7 @@ PrintWinLossText:: ; 3718
ld a, [hli]
ld h, [hl]
ld l, a
call GetMapScriptHeaderBank
call GetMapScriptsBank
call FarPrintText
call WaitBGMap
call WaitPressAorB_BlinkCursor