From 8a2d65d0ec95c1a3a04b3f75a76fce5e01b94b61 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Fri, 15 Sep 2023 14:06:23 +0100 Subject: [PATCH] Add a sound driver optimisation. --- s2.sounddriver.asm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/s2.sounddriver.asm b/s2.sounddriver.asm index d181c5d3..40de5fe1 100644 --- a/s2.sounddriver.asm +++ b/s2.sounddriver.asm @@ -2628,8 +2628,12 @@ zSlowDownMusic: ld a,(zAbsVar.1upPlaying) or a ld a,(zAbsVar.TempoMod) + if OptimiseDriver + jr nz,zSetTempo_1up + else jr z,zSetTempo jr zSetTempo_1up + endif ; =========================================================================== ; helper routines for changing the tempo