mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-18 19:54:21 +02:00
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:
+3
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user