Fix spectators spawning at world origin on sectionrace maps.

This commit is contained in:
toaster 2022-10-27 12:13:06 +01:00
parent 63a5bed7d8
commit 7e668f99b3
1 changed files with 3 additions and 1 deletions

View File

@ -3339,7 +3339,9 @@ void G_DoReborn(INT32 playernum)
// respawn at the start
mobj_t *oldmo = NULL;
if (player->starpostnum || ((mapheaderinfo[gamemap - 1]->levelflags & LF_SECTIONRACE) && player->laps)) // SRB2kart
if (player->spectator)
;
else if (player->starpostnum || ((mapheaderinfo[gamemap - 1]->levelflags & LF_SECTIONRACE) && player->laps)) // SRB2kart
starpost = true;
// first dissasociate the corpse