Boolean op instead of mod with 2
`( ... & 1)` is simpler than `(... % 2 != 0)`.
This commit is contained in:
parent
4162c4b19e
commit
451b5cb5d9
1 changed files with 1 additions and 1 deletions
|
|
@ -486,7 +486,7 @@ void HWDrawInfo::CreateScene(bool drawpsprites)
|
|||
{
|
||||
double a2 = 20.0 + 0.5*Viewpoint.FieldOfView.Degrees(); // FrustumPitch for vertical clipping
|
||||
if (a2 > 179.0) a2 = 179.0;
|
||||
double pitchmult = (portalState.PlaneMirrorFlag % 2 != 0) ? -1.0 : 1.0;
|
||||
double pitchmult = (portalState.PlaneMirrorFlag & 1) ? -1.0 : 1.0;
|
||||
vClipper->SafeAddClipRangeDegPitches(pitchmult * vp.HWAngles.Pitch.Degrees() - a2, pitchmult * vp.HWAngles.Pitch.Degrees() + a2); // clip the suplex range
|
||||
Viewpoint.PitchSin *= pitchmult;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue