Skip to content

Commit

Permalink
Make bMaskRotation angles portal-aware
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-ambar authored and coelckers committed Oct 18, 2020
1 parent 0b25881 commit 5ece08d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/playsim/p_mobj.cpp
Expand Up @@ -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))
Expand Down

0 comments on commit 5ece08d

Please sign in to comment.