Make bMaskRotation angles portal-aware

This commit is contained in:
Nikolay Ambartsumov 2020-10-18 04:39:30 +03:00 committed by Christoph Oelckers
parent 0b2588190a
commit 5ece08d12e

View file

@ -1025,8 +1025,8 @@ bool AActor::IsInsideVisibleAngles() const
if (mo != nullptr)
{
DVector3 diffang = r_viewpoint.Pos - Pos();
DVector2 offset = Level->Displacements.getOffset(r_viewpoint.sector->PortalGroup, Sector->PortalGroup);
DVector3 diffang = r_viewpoint.Pos + offset - Pos();
DAngle to = diffang.Angle();
if (!(renderflags & RF_ABSMASKANGLE))