mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- Remove 2x Normalized180()
method calls on pitch where it's not needed.
* Pitch should always be +/- 90 degrees and never need normalization. If it's not, then this shouldn't mask an error caused elsewhere.
This commit is contained in:
parent
9fbe564327
commit
043ebadbee
2 changed files with 2 additions and 2 deletions
|
@ -526,7 +526,7 @@ static void SetupView(PLAYER* pPlayer, DVector3& cPos, DAngle& cA, DAngle& cH, s
|
|||
{
|
||||
cPos.Z += bobHeight;
|
||||
}
|
||||
cPos.Z -= lerp(-10., 10., (cH.Normalized180() + DAngle90) / DAngle180);
|
||||
cPos.Z -= lerp(-10., 10., (cH + DAngle90) / DAngle180);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -232,7 +232,7 @@ void displayweapon_d(int snum, double interpfrac)
|
|||
|
||||
plravel = getavel(snum) * (1. / 16.);
|
||||
auto horiz = !SyncInput() ? p->horizon.sum() : p->horizon.interpolatedsum(interpfrac);
|
||||
horiz16th = lerp(-16., 16., (horiz.Normalized180() + DAngle90) / DAngle180);
|
||||
horiz16th = lerp(-16., 16., (horiz + DAngle90) / DAngle180);
|
||||
look_anghalf = p->angle.look_anghalf(interpfrac);
|
||||
looking_arc = p->angle.looking_arc(interpfrac);
|
||||
hard_landing *= 8.;
|
||||
|
|
Loading…
Reference in a new issue