From 7f7ea2c59293ef29d19a8b21d39da8b3d73a32f9 Mon Sep 17 00:00:00 2001 From: alufolie91 Date: Wed, 15 Nov 2023 20:47:28 +0100 Subject: [PATCH] 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 --- src/p_user.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/p_user.c b/src/p_user.c index fb300829e..4041ce212 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -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);