mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Prevent infinite lives rollover to extremely negative numbers. (Discovered while messing around with pandora's box recently.)
This commit is contained in:
parent
ea085a4c5b
commit
f75d221b0f
1 changed files with 2 additions and 0 deletions
|
|
@ -1240,6 +1240,8 @@ void P_GivePlayerLives(player_t *player, INT32 numlives)
|
|||
numlives = (numlives + prevlives - player->lives);
|
||||
}
|
||||
}
|
||||
else if (player->lives == INFLIVES)
|
||||
return;
|
||||
|
||||
player->lives += numlives;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue