Speedometer crash fix

This commit is contained in:
Sally Coolatta 2021-02-11 19:37:39 -05:00
parent e49d4a4cee
commit 25ac5c9853

View file

@ -2085,7 +2085,8 @@ static void K_drawKartSpeedometer(void)
}
// Don't overflow
if (convSpeed > 999)
// (negative speed IS really high speed :V)
if (convSpeed > 999 || convSpeed < 0)
convSpeed = 999;
numbers[0] = ((convSpeed / 100) % 10);