Skip to content

Commit

Permalink
fix music fade out into initial options menu
Browse files Browse the repository at this point in the history
Fixes #1070
  • Loading branch information
itsdarsh committed Mar 1, 2025
1 parent 1192b44 commit ed08f8e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion audio/engine.asm
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ MusicFadeRestart:
ret

MusicOn:
ld a, 1
ld a, TRUE
ld [wMusicPlaying], a
ret

Expand Down
6 changes: 5 additions & 1 deletion engine/menus/intro_menu.asm
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,14 @@ ResetWRAM_NotPlus:

ResetWRAM:
ld hl, wShadowOAM
ld bc, wOptions3 - wShadowOAM
ld bc, wMusic - wShadowOAM
xor a
rst ByteFill

ld hl, wMusicEnd
ld bc, wOptions3 - wMusicEnd
rst ByteFill

ld hl, wRAM1Start
ld bc, wGameData - wRAM1Start
rst ByteFill
Expand Down
2 changes: 1 addition & 1 deletion home/audio.asm
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ WaitSFX::
ret

MaxVolume::
ld a, $77 ; max
ld a, MAX_VOLUME
ld [wVolume], a
ret

Expand Down

0 comments on commit ed08f8e

Please sign in to comment.