mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- removed some unnecessary temporary variables.
This commit is contained in:
parent
f420ccd287
commit
565bab8bd3
1 changed files with 5 additions and 9 deletions
|
@ -726,11 +726,9 @@ void R_EnterPortal (PortalDrawseg* pds, int depth)
|
|||
}
|
||||
else
|
||||
{
|
||||
DVector3 view(ViewPos);
|
||||
DAngle va = ViewAngle;
|
||||
P_TranslatePortalXY(pds->src, view.X, view.Y);
|
||||
P_TranslatePortalZ(pds->src, view.Z);
|
||||
P_TranslatePortalAngle(pds->src, va);
|
||||
P_TranslatePortalXY(pds->src, ViewPos.X, ViewPos.Y);
|
||||
P_TranslatePortalZ(pds->src, ViewPos.Z);
|
||||
P_TranslatePortalAngle(pds->src, ViewAngle);
|
||||
P_TranslatePortalXY(pds->src, ViewPath[0].X, ViewPath[0].Y);
|
||||
P_TranslatePortalXY(pds->src, ViewPath[1].X, ViewPath[1].Y);
|
||||
|
||||
|
@ -739,8 +737,8 @@ void R_EnterPortal (PortalDrawseg* pds, int depth)
|
|||
double distp = (ViewPath[0] - ViewPath[1]).Length();
|
||||
if (distp > EQUAL_EPSILON)
|
||||
{
|
||||
double dist1 = (view - ViewPath[0]).Length();
|
||||
double dist2 = (view - ViewPath[1]).Length();
|
||||
double dist1 = (ViewPos - ViewPath[0]).Length();
|
||||
double dist2 = (ViewPos - ViewPath[1]).Length();
|
||||
|
||||
if (dist1 + dist2 < distp + 1)
|
||||
{
|
||||
|
@ -748,8 +746,6 @@ void R_EnterPortal (PortalDrawseg* pds, int depth)
|
|||
}
|
||||
}
|
||||
}
|
||||
ViewPos = view;
|
||||
ViewAngle = va;
|
||||
}
|
||||
|
||||
ViewSin = ViewAngle.Sin();
|
||||
|
|
Loading…
Reference in a new issue