mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-12 23:54:17 +00:00
Make bMaskRotation angles portal-aware
This commit is contained in:
parent
0b2588190a
commit
5ece08d12e
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue