mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-22 07:02:17 +13:00
Fix remaining uses of fade
This commit is contained in:
parent
37d3ba4b39
commit
b2afaae7ab
14 changed files with 43 additions and 62 deletions
|
|
@ -60,17 +60,19 @@ PlayDefaultMusicCommon::
|
|||
|
||||
.next4
|
||||
ld a, c
|
||||
ld [wAudioFadeOutControl], a
|
||||
and a
|
||||
jr nz, .next5
|
||||
inc a
|
||||
.next5
|
||||
ld [wMusicFade], a
|
||||
|
||||
ld a, b
|
||||
ld [wLastMusicSoundID], a
|
||||
; ld [wNewSoundID], a
|
||||
ld [wMusicFadeID], a
|
||||
|
||||
; if no fade, play immediately
|
||||
ld a, [wMusicFade]
|
||||
and a
|
||||
jr nz, .next5
|
||||
ld a, b
|
||||
call PlayMusic
|
||||
.next5
|
||||
|
||||
ret
|
||||
|
||||
;UpdateMusic6Times::
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue