diff --git a/src/playsim/p_mobj.cpp b/src/playsim/p_mobj.cpp index 870536843..76ad72ca4 100644 --- a/src/playsim/p_mobj.cpp +++ b/src/playsim/p_mobj.cpp @@ -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))