- fixed - sector sounds were not translated through portal groups properly

(cherry picked from commit 780ddd21bd)
This commit is contained in:
Rachael Alexanderson 2018-06-04 13:10:58 -04:00 committed by drfrag666
parent 3e9f8e7679
commit 4d238beb7b

View file

@ -764,8 +764,8 @@ static void CalcPosVel(int type, const AActor *actor, const sector_t *sector,
{
// listener must be reversely offset to calculate the proper sound origin.
CalcSectorSoundOrg(listenpos + disp, sector, channum, *pos);
pos->X += (float)disp.X;
pos->Z += (float)disp.Y;
pos->X -= (float)disp.X;
pos->Z -= (float)disp.Y;
}
else
{