mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-20 19:02:34 +00:00
Merge branch 'inflivesfix' into 'master'
Prevent infinite lives rollover to extremely negative numbers. See merge request STJr/SRB2Internal!446
This commit is contained in:
commit
d1e800e1a8
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…
Reference in a new issue