- fixed: sound from poly objects through portals will now propegate properly

This commit is contained in:
Rachael Alexanderson 2018-08-25 18:23:49 -04:00
parent 5b7d3c91f9
commit 4d3249496a

View file

@ -776,8 +776,8 @@ static void CalcPosVel(int type, const AActor *actor, const sector_t *sector,
{
DVector2 disp = level.Displacements.getOffset(pgroup, poly->CenterSubsector->sector->PortalGroup);
CalcPolyobjSoundOrg(listenpos + disp, poly, *pos);
pos->X += (float)disp.X;
pos->Z += (float)disp.Y;
pos->X -= (float)disp.X;
pos->Z -= (float)disp.Y;
}
break;
}