mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 12:01:47 +00:00
Fix overflow check
This commit is contained in:
parent
58b9b00e8e
commit
48a8b8b817
1 changed files with 3 additions and 5 deletions
|
|
@ -3451,11 +3451,9 @@ void K_AwardPlayerRings(player_t *player, INT32 rings, boolean overload)
|
||||||
|
|
||||||
superring = player->superring + (rings * 3);
|
superring = player->superring + (rings * 3);
|
||||||
|
|
||||||
/* overflow */
|
/* check if not overflow */
|
||||||
if (superring < player->superring)
|
if (superring > player->superring)
|
||||||
superring += (player->superring - superring);
|
player->superring = superring;
|
||||||
|
|
||||||
player->superring = superring;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void K_DoInstashield(player_t *player)
|
void K_DoInstashield(player_t *player)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue