Fix totalring/xtralife getting reset

This commit is contained in:
Sally Coolatta 2020-06-05 19:29:00 -04:00
parent a889898eeb
commit 2a30fc365f
2 changed files with 4 additions and 1 deletions

View file

@ -2596,6 +2596,7 @@ void G_PlayerReborn(INT32 player)
UINT8 botdiffincrease;
boolean botrival;
SINT8 pity;
SINT8 xtralife;
// SRB2kart
respawnvars_t respawn;
@ -2646,6 +2647,7 @@ void G_PlayerReborn(INT32 player)
botdiffincrease = players[player].botvars.diffincrease;
botrival = players[player].botvars.rival;
pity = players[player].pity;
xtralife = players[player].xtralife;
// SRB2kart
if (leveltime <= starttime)
@ -2726,6 +2728,7 @@ void G_PlayerReborn(INT32 player)
p->botvars.diffincrease = botdiffincrease;
p->botvars.rival = botrival;
p->pity = pity;
p->xtralife = xtralife;
// SRB2kart
p->kartstuff[k_itemroulette] = itemroulette;

View file

@ -2431,7 +2431,7 @@ static void P_LevelInitStuff(void)
players[i].lostlife = false;
players[i].gotcontinue = false;
players[i].deadtimer = players[i].numboxes = players[i].totalring = players[i].laps = 0;
players[i].deadtimer = players[i].numboxes = players[i].laps = 0;
players[i].health = 1;
players[i].aiming = 0;
players[i].pflags &= ~PF_TIMEOVER;