mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-31 12:30:32 +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)
|
if (mo != nullptr)
|
||||||
{
|
{
|
||||||
|
DVector2 offset = Level->Displacements.getOffset(r_viewpoint.sector->PortalGroup, Sector->PortalGroup);
|
||||||
DVector3 diffang = r_viewpoint.Pos - Pos();
|
DVector3 diffang = r_viewpoint.Pos + offset - Pos();
|
||||||
DAngle to = diffang.Angle();
|
DAngle to = diffang.Angle();
|
||||||
|
|
||||||
if (!(renderflags & RF_ABSMASKANGLE))
|
if (!(renderflags & RF_ABSMASKANGLE))
|
||||||
|
|
Loading…
Reference in a new issue