From 1850123f8bf49ad4fabb11e71d8ec5724b5e5fb7 Mon Sep 17 00:00:00 2001 From: Latapostrophe Date: Sun, 20 Jan 2019 18:50:07 +0100 Subject: [PATCH] Prevent the use of respawn to cheese SPB and other items --- src/d_netcmd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/d_netcmd.c b/src/d_netcmd.c index 41f88ab95..8272b75d4 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -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)) {