From e123f4bd532c323b0a9972497daa01b0235de278 Mon Sep 17 00:00:00 2001 From: JugadorXEI Date: Wed, 19 May 2021 23:19:43 +0200 Subject: [PATCH] Fix 0th position bug --- src/g_game.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/g_game.c b/src/g_game.c index d9d7b7f1..c6cb31b0 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -2592,6 +2592,7 @@ void G_PlayerReborn(INT32 player) SINT8 pity; // SRB2kart + INT32 position; INT32 starpostwp; INT32 itemtype; INT32 itemamount; @@ -2654,10 +2655,12 @@ void G_PlayerReborn(INT32 player) bumper = (G_BattleGametype() ? cv_kartbumpers.value : 0); comebackpoints = 0; wanted = 0; + position = 0; starpostwp = 0; } else { + position = players[player].kartstuff[k_position]; starpostwp = players[player].kartstuff[k_starpostwp]; itemroulette = (players[player].kartstuff[k_itemroulette] > 0 ? 1 : 0); @@ -2725,6 +2728,7 @@ void G_PlayerReborn(INT32 player) p->pity = pity; // SRB2kart + p->kartstuff[k_position] = position; p->kartstuff[k_starpostwp] = starpostwp; // TODO: get these out of kartstuff, it causes desync p->kartstuff[k_itemroulette] = itemroulette; p->kartstuff[k_roulettetype] = roulettetype;