diff --git a/src/p_user.c b/src/p_user.c index 4c8015948..ef2c36090 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -1755,15 +1755,18 @@ void P_DoPlayerExit(player_t *player) grandprixinfo.wonround = true; // Increase your total rings - player->totalring += RINGTOTAL(player); - - extra = player->totalring / lifethreshold; - - if (extra > player->xtralife) + if (RINGTOTAL(player) > 0) { - P_GivePlayerLives(player, extra - player->xtralife); - S_StartSound(NULL, sfx_cdfm73); - player->xtralife = extra; + player->totalring += RINGTOTAL(player); + + extra = player->totalring / lifethreshold; + + if (extra > player->xtralife) + { + P_GivePlayerLives(player, extra - player->xtralife); + S_StartSound(NULL, sfx_cdfm73); + player->xtralife = extra; + } } } }