mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-29 12:40:40 +00:00
No more cheesing Shrink by dying
(If that was kept, we'd see it exploited all the time on release :V)
This commit is contained in:
parent
ebb0733a3c
commit
3ec228d34f
1 changed files with 6 additions and 0 deletions
|
@ -2359,6 +2359,7 @@ void G_PlayerReborn(INT32 player)
|
|||
INT32 itemamount;
|
||||
INT32 itemroulette;
|
||||
INT32 roulettetype;
|
||||
INT32 growshrinktimer;
|
||||
INT32 bumper;
|
||||
INT32 comebackpoints;
|
||||
INT32 wanted;
|
||||
|
@ -2422,6 +2423,7 @@ void G_PlayerReborn(INT32 player)
|
|||
roulettetype = 0;
|
||||
itemtype = 0;
|
||||
itemamount = 0;
|
||||
growshrinktimer = 0;
|
||||
bumper = (G_BattleGametype() ? cv_kartbumpers.value : 0);
|
||||
comebackpoints = 0;
|
||||
wanted = 0;
|
||||
|
@ -2445,6 +2447,9 @@ void G_PlayerReborn(INT32 player)
|
|||
itemamount = players[player].kartstuff[k_itemamount];
|
||||
}
|
||||
|
||||
// Keep Shrink status, remove Grow status
|
||||
growshrinktimer = min(players[player].kartstuff[k_growshrinktimer], 0);
|
||||
|
||||
bumper = players[player].kartstuff[k_bumper];
|
||||
comebackpoints = players[player].kartstuff[k_comebackpoints];
|
||||
wanted = players[player].kartstuff[k_wanted];
|
||||
|
@ -2509,6 +2514,7 @@ void G_PlayerReborn(INT32 player)
|
|||
p->kartstuff[k_roulettetype] = roulettetype;
|
||||
p->kartstuff[k_itemtype] = itemtype;
|
||||
p->kartstuff[k_itemamount] = itemamount;
|
||||
p->kartstuff[k_growshrinktimer] = growshrinktimer;
|
||||
p->kartstuff[k_bumper] = bumper;
|
||||
p->kartstuff[k_comebackpoints] = comebackpoints;
|
||||
p->kartstuff[k_comebacktimer] = comebacktime;
|
||||
|
|
Loading…
Reference in a new issue