You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Make the map setup commands match the actual function names better
These functions used as map setup commands are used in other places, too, so I can't prefix them under the same. The names should match except I won't repeat "map" in a map setup command name.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
; Audio interfaces.
|
||||
|
||||
MapSetup_Sound_Off::
|
||||
InitSound::
|
||||
push hl
|
||||
push de
|
||||
push bc
|
||||
@@ -8,11 +8,11 @@ MapSetup_Sound_Off::
|
||||
|
||||
ldh a, [hROMBank]
|
||||
push af
|
||||
ld a, BANK(_MapSetup_Sound_Off)
|
||||
ld a, BANK(_InitSound)
|
||||
ldh [hROMBank], a
|
||||
ld [MBC3RomBank], a
|
||||
|
||||
call _MapSetup_Sound_Off
|
||||
call _InitSound
|
||||
|
||||
pop af
|
||||
ldh [hROMBank], a
|
||||
@@ -71,7 +71,7 @@ PlayMusic::
|
||||
|
||||
ldh a, [hROMBank]
|
||||
push af
|
||||
ld a, BANK(_PlayMusic) ; aka BANK(_MapSetup_Sound_Off)
|
||||
ld a, BANK(_PlayMusic) ; aka BANK(_InitSound)
|
||||
ldh [hROMBank], a
|
||||
ld [MBC3RomBank], a
|
||||
|
||||
@@ -83,7 +83,7 @@ PlayMusic::
|
||||
jr .end
|
||||
|
||||
.nomusic
|
||||
call _MapSetup_Sound_Off
|
||||
call _InitSound
|
||||
|
||||
.end
|
||||
pop af
|
||||
@@ -359,7 +359,8 @@ PlayMapMusic::
|
||||
pop hl
|
||||
ret
|
||||
|
||||
EnterMapMusic::
|
||||
PlayMapMusicBike::
|
||||
; If the player's on a bike, play the bike music instead of the map music
|
||||
push hl
|
||||
push de
|
||||
push bc
|
||||
|
||||
Reference in New Issue
Block a user