Skip to content

Commit

Permalink
Optimising a sound driver bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Clownacy committed Dec 25, 2015
1 parent 5c6a48d commit 14e2ee4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions s2.sounddriver.asm
Expand Up @@ -1205,9 +1205,8 @@ zloc_515: ; If you get here, then "do not attack next note" was set...
zloc_522:
; This just decrements the flutter to keep it in place; no more volume changes in this list
if FixDriverBugs
ld a,(ix+zTrack.VolFlutter)
sub 2 ; Put index back (before final volume value)
ld (ix+zTrack.VolFlutter),a
dec (ix+zTrack.VolFlutter)
dec (ix+zTrack.VolFlutter) ; Put index back (before final volume value)
jr zPSGDoVolFX ; Loop back and update volume
else
; DANGER! This effectively halts all future volume updates, breaking fades.
Expand Down

0 comments on commit 14e2ee4

Please sign in to comment.