Fix ring underflow
This commit is contained in:
parent
4623afe0be
commit
9392cc1bd7
1 changed files with 1 additions and 1 deletions
|
|
@ -510,7 +510,7 @@ INT32 P_GivePlayerRings(player_t *player, INT32 num_rings)
|
||||||
if (test > player->ringmax) // Caps at 20 rings, sorry!
|
if (test > player->ringmax) // Caps at 20 rings, sorry!
|
||||||
num_rings -= (test-player->ringmax);
|
num_rings -= (test-player->ringmax);
|
||||||
else if (test < player->ringmin) // Chaotix ring debt!
|
else if (test < player->ringmin) // Chaotix ring debt!
|
||||||
num_rings -= (test+player->ringmin);
|
num_rings -= (test-player->ringmin);
|
||||||
|
|
||||||
player->rings += num_rings;
|
player->rings += num_rings;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue