LttP: fix missing music

This commit is contained in:
Fabian Dill 2021-08-14 01:00:36 +02:00
parent f2f4d6a133
commit 8abfd14569
2 changed files with 4 additions and 4 deletions

View File

@ -561,9 +561,9 @@ A Link to the Past:
# You can combine these events like this. randomonhit-enter-exit if you want it on hit, enter, exit.
randomonall: 0 # Random sprite on any and all currently supported events. Refer to above for the supported events.
Link: 50 # To add other sprites: open the gui/Creator, go to adjust, select a sprite and write down the name the gui calls it
disablemusic: # If "on", all in-game music will be disabled
on: 0
off: 50
music: # If "off", all in-game music will be disabled
on: 50
off: 0
quickswap: # Enable switching items by pressing the L+R shoulder buttons
on: 50
off: 0

View File

@ -1754,7 +1754,7 @@ def apply_rom_settings(rom, beep, color, quickswap, menuspeed, music: bool, spri
world=None, player=1, allow_random_on_event=False, reduceflashing=False,
triforcehud: str = None):
local_random = random if not world else world.slot_seeds[player]
disable_music: bool = music
disable_music: bool = not music
# enable instant item menu
if menuspeed == 'instant':
rom.write_byte(0x6DD9A, 0x20)