From 31794448c78d19ecfd0d7561fdb6288ebc912fca Mon Sep 17 00:00:00 2001 From: NepDisk Date: Wed, 22 Oct 2025 11:35:46 -0400 Subject: [PATCH] Disallow respawning after finishing the race --- src/d_netcmd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/d_netcmd.c b/src/d_netcmd.c index 653a301c7..a27f040f3 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -3639,6 +3639,12 @@ static void HandleRespawnCommand(UINT8 localplayer) return; } + if (players[g_localplayers[localplayer]].mo && players[g_localplayers[localplayer]].exiting) + { + CONS_Printf(M_GetText("You have no reason to respawn.\n")); + return; + } + WRITEUINT8(cp, g_localplayers[localplayer]); SendNetXCmdForPlayer(localplayer, XD_RESPAWN, &buf, sizeof(buf)); }