reset camera when joining from spec

camera look never got reset when you enter a game from spec, so if you looked up or down, you also did so ingame lol
This commit is contained in:
alufolie91 committed 2023-11-15 20:47:28 +01:00
1 parent dc1dfe0d4d
commit 7f7ea2c592
1 file changed
+6
+6
View File
@@ -8063,6 +8063,9 @@ boolean P_SpectatorJoinGame(player_t *player)
// Partial code reproduction from p_tick.c autobalance code.
else if (G_GametypeHasTeams())
{
if (P_IsLocalPlayer(player))
localaiming[0] = 0;
INT32 changeto = 0;
INT32 z, numplayersred = 0, numplayersblue = 0;
@@ -8113,6 +8116,9 @@ boolean P_SpectatorJoinGame(player_t *player)
// Joining in game from firing.
else
{
if (P_IsLocalPlayer(player))
localaiming[0] = 0;
if (player->mo)
{
P_RemoveMobj(player->mo);