- set p->TiltStatus in boatApplyTurn() to 0 if less than factor, not previous hard-coded constant.

This commit is contained in:
Mitchell Richters 2020-07-24 21:38:11 +10:00
parent 4bf5c3d6b5
commit d0f839060e

View file

@ -1090,7 +1090,7 @@ static double boatApplyTurn(player_struct *p, int turnl, int turnr, int boat_tur
p->TiltStatus += (float)factor;
}
if (fabs(p->TiltStatus) < 0.025)
if (fabs(p->TiltStatus) < factor)
p->TiltStatus = 0;
return turnvel * factor;