Fix spectators spawning at world origin on sectionrace maps.

This commit is contained in:
toaster committed 2022-10-27 12:13:06 +01:00
1 parent 63a5bed7d8
commit 7e668f99b3
1 file changed
+3 -1
+3 -1
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