mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
mess with total ring calculations
This commit is contained in:
parent
47d6fba4de
commit
9ae8628424
1 changed files with 11 additions and 8 deletions
19
src/p_user.c
19
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue