Got_TeamChange: only do mobj kill/PST_REBORN stuff in GS_LEVEL.

This commit is contained in:
toaster 2023-02-17 14:41:47 +00:00
parent 8fb1ffe5fe
commit 7d2accb044

View file

@ -3764,7 +3764,7 @@ static void Got_Teamchange(UINT8 **cp, INT32 playernum)
//Safety first!
// (not respawning spectators here...)
if (!players[playernum].spectator)
if (!players[playernum].spectator && gamestate == GS_LEVEL)
{
if (players[playernum].mo)
{