From 78d5b2aa95e0ba85ff5b1fd6e8ca26b70d3dd301 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 10 Oct 2020 19:17:23 +0200 Subject: [PATCH] - Duke: fixed: The Recon's roaming sound was poorly checked resulting in garbled output. It checked for two instances globally, which made the same actor repeat its sound all over again, but if more recons were present some were silent. Now each one is allowed to play its effect separately. --- source/games/duke/src/actors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/actors.cpp b/source/games/duke/src/actors.cpp index ee4d71128..ac8e1f05c 100644 --- a/source/games/duke/src/actors.cpp +++ b/source/games/duke/src/actors.cpp @@ -1802,7 +1802,7 @@ void recon(int i, int explosion, int firelaser, int attacksnd, int painsnd, int else s->z -= 1024; } - if (roamsnd >= 0 && S_CheckSoundPlaying(roamsnd) < 2) + if (roamsnd >= 0 && S_CheckSoundPlaying(i, roamsnd) < 1) S_PlayActorSound(roamsnd, i); ssp(i, CLIPMASK0);