mess with total ring calculations

This commit is contained in:
Sally Coolatta 2020-06-05 18:54:23 -04:00
parent 47d6fba4de
commit 9ae8628424

View file

@ -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;
}
}
}
}