mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Remove item roulette between maps
This commit is contained in:
parent
ffe9d5cd1d
commit
167df6cca7
1 changed files with 5 additions and 3 deletions
|
|
@ -2322,8 +2322,13 @@ void G_PlayerReborn(INT32 player, boolean betweenmaps)
|
||||||
pflags = (players[player].pflags & (PF_WANTSTOJOIN|PF_KICKSTARTACCEL|PF_SHRINKME|PF_SHRINKACTIVE));
|
pflags = (players[player].pflags & (PF_WANTSTOJOIN|PF_KICKSTARTACCEL|PF_SHRINKME|PF_SHRINKACTIVE));
|
||||||
|
|
||||||
// SRB2kart
|
// SRB2kart
|
||||||
|
memcpy(&itemRoulette, &players[player].itemRoulette, sizeof (itemRoulette));
|
||||||
|
memcpy(&respawn, &players[player].respawn, sizeof (respawn));
|
||||||
|
|
||||||
if (betweenmaps || leveltime < introtime)
|
if (betweenmaps || leveltime < introtime)
|
||||||
{
|
{
|
||||||
|
itemRoulette.active = false;
|
||||||
|
|
||||||
itemtype = 0;
|
itemtype = 0;
|
||||||
itemamount = 0;
|
itemamount = 0;
|
||||||
growshrinktimer = 0;
|
growshrinktimer = 0;
|
||||||
|
|
@ -2400,9 +2405,6 @@ void G_PlayerReborn(INT32 player, boolean betweenmaps)
|
||||||
P_SetTarget(&players[player].follower, NULL);
|
P_SetTarget(&players[player].follower, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(&itemRoulette, &players[player].itemRoulette, sizeof (itemRoulette));
|
|
||||||
memcpy(&respawn, &players[player].respawn, sizeof (respawn));
|
|
||||||
|
|
||||||
p = &players[player];
|
p = &players[player];
|
||||||
memset(p, 0, sizeof (*p));
|
memset(p, 0, sizeof (*p));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue