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

This commit is contained in:
Rachael Alexanderson 2018-06-04 13:10:58 -04:00
parent e3c78ab838
commit 780ddd21bd

View file

@ -757,8 +757,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
{