Fix incorrect check for viewpitch workaround.

This commit is contained in:
Mari the Deer 2023-03-03 20:50:50 +01:00
commit 31a9914e65
2 changed files with 3 additions and 3 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r755 \cu(Fri 3 Mar 20:52:22 CET 2023)\c-";
SWWM_SHORTVER="\cw1.3pre r755 \cu(2023-03-03 20:52:22)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r756 \cu(Fri 3 Mar 20:52:48 CET 2023)\c-";
SWWM_SHORTVER="\cw1.3pre r756 \cu(2023-03-03 20:52:48)\c-";

View file

@ -453,7 +453,7 @@ extend Class Demolitionist
else temp *= .8;
if ( ViewAngle != temp.x ) A_SetViewAngle(temp.x,SPF_INTERPOLATE);
// IMPORTANT: don't call A_SetViewPitch if the player's min/max pitch are not yet initialized
if ( (ViewPitch != temp.y) && (player.MinPitch == player.MaxPitch == pitch) ) A_SetViewPitch(temp.y,SPF_INTERPOLATE);
if ( (ViewPitch != temp.y) && !(player.MinPitch == player.MaxPitch == pitch) ) 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;