- 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.
This commit is contained in:
Christoph Oelckers 2020-07-26 11:44:31 +02:00
parent 342b90c8f9
commit 54d3d8e96d

View file

@ -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;