mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-19 14:32:34 +00:00
G_PlayerReborn: Clear roundcondition information on becoming a spectator (should resolve #1231)
This commit is contained in:
parent
d1910a6574
commit
4f37a3f183
1 changed files with 7 additions and 3 deletions
10
src/g_game.c
10
src/g_game.c
|
|
@ -2267,6 +2267,8 @@ void G_PlayerReborn(INT32 player, boolean betweenmaps)
|
||||||
rings = 5;
|
rings = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
saveroundconditions = false;
|
||||||
|
|
||||||
if (betweenmaps || leveltime < introtime)
|
if (betweenmaps || leveltime < introtime)
|
||||||
{
|
{
|
||||||
K_StopRoulette(&itemRoulette);
|
K_StopRoulette(&itemRoulette);
|
||||||
|
|
@ -2288,7 +2290,6 @@ void G_PlayerReborn(INT32 player, boolean betweenmaps)
|
||||||
lastsafecheatcheck = 0;
|
lastsafecheatcheck = 0;
|
||||||
bigwaypointgap = 0;
|
bigwaypointgap = 0;
|
||||||
|
|
||||||
saveroundconditions = false;
|
|
||||||
tallyactive = false;
|
tallyactive = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -2328,8 +2329,11 @@ void G_PlayerReborn(INT32 player, boolean betweenmaps)
|
||||||
|
|
||||||
pflags |= (players[player].pflags & (PF_STASIS|PF_ELIMINATED|PF_NOCONTEST|PF_FAULT|PF_LOSTLIFE));
|
pflags |= (players[player].pflags & (PF_STASIS|PF_ELIMINATED|PF_NOCONTEST|PF_FAULT|PF_LOSTLIFE));
|
||||||
|
|
||||||
memcpy(&roundconditions, &players[player].roundconditions, sizeof (roundconditions));
|
if (spectator == false)
|
||||||
saveroundconditions = true;
|
{
|
||||||
|
memcpy(&roundconditions, &players[player].roundconditions, sizeof (roundconditions));
|
||||||
|
saveroundconditions = true;
|
||||||
|
}
|
||||||
|
|
||||||
lastsafelap = players[player].lastsafelap;
|
lastsafelap = players[player].lastsafelap;
|
||||||
lastsafecheatcheck = players[player].lastsafecheatcheck;
|
lastsafecheatcheck = players[player].lastsafecheatcheck;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue