fix(audio): do not stop the move sfx source the replay just restarted

The takeover stop in Sound.playMove moved after the new source starts in
cfa84063, but an equal-id replay reuses the cached source, so the stop
killed the sound it had just restarted.
This commit is contained in:
bryanthaboi
2026-08-18 10:14:44 -04:00
parent 8240205254
commit 25ec896545
+3 -1
View File
@@ -550,7 +550,9 @@ function Sound.playMove(data, anim)
end
-- audio/engine_2.asm:1537
if superseded then
for old in pairs(superseded) do pcall(old.stop, old) end
for old in pairs(superseded) do
if old ~= src then pcall(old.stop, old) end
end
end
if src then
played("move", name)