mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-29 03:02:38 +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);
|
||||
|
||||
/* overflow */
|
||||
if (superring < player->superring)
|
||||
superring += (player->superring - superring);
|
||||
|
||||
player->superring = superring;
|
||||
/* check if not overflow */
|
||||
if (superring > player->superring)
|
||||
player->superring = superring;
|
||||
}
|
||||
|
||||
void K_DoInstashield(player_t *player)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue