Disallow respawning after finishing the race

This commit is contained in:
NepDisk 2025-10-22 11:35:46 -04:00
parent 2dfbd66031
commit 31794448c7

View file

@ -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));
}