Disallow respawning after finishing the race
This commit is contained in:
parent
2dfbd66031
commit
31794448c7
1 changed files with 6 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue