From 7e668f99b3a03d843ba6dc43155df37f931c5778 Mon Sep 17 00:00:00 2001 From: toaster Date: Thu, 27 Oct 2022 12:13:06 +0100 Subject: [PATCH] Fix spectators spawning at world origin on sectionrace maps. --- src/g_game.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/g_game.c b/src/g_game.c index 68dc393a..089b6ff4 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -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