mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Fix -Wtype-limits
This subtraction cannot yield a negative value, even if the type were signed, so the max is useless.
This commit is contained in:
parent
b79375d0ab
commit
4316169d99
1 changed files with 1 additions and 1 deletions
|
|
@ -1611,7 +1611,7 @@ static void K_DrawKartPositionNum(INT32 num)
|
||||||
|
|
||||||
if (leveltime < (starttime + NUMTRANSMAPS))
|
if (leveltime < (starttime + NUMTRANSMAPS))
|
||||||
{
|
{
|
||||||
trans = max(0, (starttime + NUMTRANSMAPS) - leveltime);
|
trans = (starttime + NUMTRANSMAPS) - leveltime;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (trans >= NUMTRANSMAPS)
|
if (trans >= NUMTRANSMAPS)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue