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 6cb8818a46
commit 75562807c6

View file

@ -2490,6 +2490,12 @@ static void Command_Respawn(void)
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))
{
CONS_Printf(M_GetText("You must be in a level to use this.\n"));