mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
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:
parent
d2affc7c0c
commit
c01107181a
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue