Fix erratic ViewPitch when loading saves.
This commit is contained in:
parent
11c497178d
commit
5e552e7607
2 changed files with 7 additions and 5 deletions
|
|
@ -447,9 +447,11 @@ extend Class Demolitionist
|
|||
bumproll *= .8;
|
||||
}
|
||||
// stabilize view angles
|
||||
A_SetViewAngle(temp.x*.8,SPF_INTERPOLATE);
|
||||
A_SetViewPitch(temp.y*.8,SPF_INTERPOLATE);
|
||||
A_SetViewRoll(temp.z*.8,SPF_INTERPOLATE);
|
||||
temp *= .8;
|
||||
if ( temp dot temp < double.epsilon ) temp = (0,0,0);
|
||||
if ( ViewAngle != temp.x ) A_SetViewAngle(temp.x,SPF_INTERPOLATE);
|
||||
if ( ViewPitch != temp.y ) A_SetViewPitch(temp.y,SPF_INTERPOLATE);
|
||||
if ( ViewRoll != temp.z ) A_SetViewRoll(temp.z,SPF_INTERPOLATE);
|
||||
if ( player.onground && !lastground ) landvelz = lastvelz;
|
||||
else if ( !player.onground && lastground ) landvelz = 0;
|
||||
else if ( player.onground && lastground ) landvelz *= .9;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue