From c01107181a285625a2addc92dfcc0585d2ac1a72 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 12 Feb 2017 11:26:25 +0200 Subject: [PATCH] Reset sound position only when there is no listener https://mantis.zdoom.org/view.php?id=206 https://mantis.zdoom.org/view.php?id=248 --- src/s_sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s_sound.cpp b/src/s_sound.cpp index bae1fbaf6..f01d3288c 100644 --- a/src/s_sound.cpp +++ b/src/s_sound.cpp @@ -692,6 +692,7 @@ static void CalcPosVel(int type, const AActor *actor, const sector_t *sector, else { listenpos.Zero(); + pos->Zero(); pgroup = 0; } @@ -711,7 +712,6 @@ static void CalcPosVel(int type, const AActor *actor, const sector_t *sector, { case SOURCE_None: default: - pos->Zero(); break; case SOURCE_Actor: