mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-08 14:46:22 +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
|
||||
if (convSpeed > 999)
|
||||
// (negative speed IS really high speed :V)
|
||||
if (convSpeed > 999 || convSpeed < 0)
|
||||
convSpeed = 999;
|
||||
|
||||
numbers[0] = ((convSpeed / 100) % 10);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue