mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
Speedometer crash fix
This commit is contained in:
parent
e49d4a4cee
commit
25ac5c9853
1 changed files with 2 additions and 1 deletions
|
|
@ -2085,7 +2085,8 @@ static void K_drawKartSpeedometer(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Don't overflow
|
// Don't overflow
|
||||||
if (convSpeed > 999)
|
// (negative speed IS really high speed :V)
|
||||||
|
if (convSpeed > 999 || convSpeed < 0)
|
||||||
convSpeed = 999;
|
convSpeed = 999;
|
||||||
|
|
||||||
numbers[0] = ((convSpeed / 100) % 10);
|
numbers[0] = ((convSpeed / 100) % 10);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue