Fix visual not matching exact steep range

This commit is contained in:
Sally Coolatta 2022-09-21 02:01:38 -04:00
parent 3f66a8e72f
commit 1530c15db7

View file

@ -3996,7 +3996,7 @@ void K_UpdateStumbleIndicator(player_t *player)
steepRange = ANGLE_90 - steepVal;
delta = max(0, abs(delta) - ((signed)steepVal));
trans = ((FixedDiv(AngleFixed(delta), AngleFixed(steepRange)) * (NUMTRANSMAPS+1)) + (FRACUNIT/2)) / FRACUNIT;
trans = ((FixedDiv(AngleFixed(delta), AngleFixed(steepRange)) * NUMTRANSMAPS) + (FRACUNIT/2)) / FRACUNIT;
if (trans < 0)
{