mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-10 08:44:25 +00:00
Persist player.lastsafelap after death
This commit is contained in:
parent
2ab6710e29
commit
bc950c18a2
1 changed files with 4 additions and 0 deletions
|
|
@ -2066,6 +2066,7 @@ void G_PlayerReborn(INT32 player, boolean betweenmaps)
|
|||
INT32 kickstartaccel;
|
||||
INT32 checkpointId;
|
||||
boolean enteredGame;
|
||||
UINT8 lastsafelap;
|
||||
|
||||
roundconditions_t roundconditions;
|
||||
boolean saveroundconditions;
|
||||
|
|
@ -2134,6 +2135,8 @@ void G_PlayerReborn(INT32 player, boolean betweenmaps)
|
|||
|
||||
pflags = (players[player].pflags & (PF_WANTSTOJOIN|PF_KICKSTARTACCEL|PF_SHRINKME|PF_SHRINKACTIVE|PF_AUTOROULETTE));
|
||||
|
||||
lastsafelap = players[player].lastsafelap;
|
||||
|
||||
// SRB2kart
|
||||
memcpy(&itemRoulette, &players[player].itemRoulette, sizeof (itemRoulette));
|
||||
memcpy(&respawn, &players[player].respawn, sizeof (respawn));
|
||||
|
|
@ -2287,6 +2290,7 @@ void G_PlayerReborn(INT32 player, boolean betweenmaps)
|
|||
p->spectator = spectator;
|
||||
p->steering = steering;
|
||||
p->angleturn = playerangleturn;
|
||||
p->lastsafelap = lastsafelap;
|
||||
|
||||
// save player config truth reborn
|
||||
p->skincolor = skincolor;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue