Merge branch 'fix-director-prank' into 'master'

Fix viewpoint switching to bot in Tutorials (could have been a rare bug in netgames too!)

Closes #758

See merge request KartKrew/Kart!1630
This commit is contained in:
toaster 2023-11-16 10:05:23 +00:00
commit 13b83e3f09

View file

@ -12655,12 +12655,12 @@ void P_SpawnPlayer(INT32 playernum)
camera[G_PartyPosition(playernum)].freecam = false;
}
}
else if (pcount == 1)
else if (pcount == 1 && !p->spectator)
{
// If the first player enters the game, view them.
for (i = 0; i <= r_splitscreen; ++i)
{
K_ToggleDirector(i, director);
K_ToggleDirector(i, true);
}
}
}