mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix totalring/xtralife getting reset
This commit is contained in:
parent
a889898eeb
commit
2a30fc365f
2 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue