Prevent the use of respawn to cheese SPB and other items

This commit is contained in:
Latapostrophe 2019-01-20 18:50:07 +01:00
parent c0c2ba4ca6
commit 1850123f8b

View file

@ -2489,6 +2489,12 @@ static void Command_Respawn(void)
UINT8 *cp = buf;
WRITEINT32(cp, consoleplayer);
if (players[consoleplayer].kartstuff[k_spinouttimer]) // KART: Nice try, but no, you won't be cheesing spb anymore.
{
CONS_Printf(M_GetText("Cannot use this while hurt.\n"));
return;
}
if (!(gamestate == GS_LEVEL || gamestate == GS_INTERMISSION || gamestate == GS_VOTING))
{