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
This commit is contained in:
alexey.lysiuk 2017-02-12 11:26:25 +02:00
parent d2affc7c0c
commit c01107181a

View file

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