From 54d3d8e96dda5d4553fd0b390111fc36a7774f07 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 26 Jul 2020 11:44:31 +0200 Subject: [PATCH] - play the camera switch sound as a UI sound to reduce problems. Due to how sound positioning works, doing this in 3D will cause various problems with cameras too far away or random bleeps emanating from the cameras. --- source/games/duke/src/sectors_d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/sectors_d.cpp b/source/games/duke/src/sectors_d.cpp index 8a99725bb..2b3ab45b2 100644 --- a/source/games/duke/src/sectors_d.cpp +++ b/source/games/duke/src/sectors_d.cpp @@ -1693,7 +1693,7 @@ void checksectors_d(int snum) if (sprite[i].picnum == CAMERA1 && sprite[i].yvel == 0 && sprite[neartagsprite].hitag == sprite[i].lotag) { sprite[i].yvel = 1; //Using this camera - S_PlayActorSound(MONITOR_ACTIVE, neartagsprite); + if (snum == screenpeek) S_PlaySound(MONITOR_ACTIVE); sprite[neartagsprite].owner = i; sprite[neartagsprite].yvel = 1;