From 9ae1f207353cf964b55d10cd8775f00f1835cbdf Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 15 Nov 2023 21:24:39 +0100 Subject: [PATCH] actually only do it if its not centered --- src/p_user.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/p_user.c b/src/p_user.c index 6a3e1ab95..517e6a07f 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -8099,8 +8099,8 @@ boolean P_SpectatorJoinGame(player_t *player) player->ctfteam = changeto; player->playerstate = PST_REBORN; - //reset camera - if (P_IsLocalPlayer(player)) + //center camera if its not already + if ((P_IsLocalPlayer(player)) && localaiming[0] != 0) localaiming[0] = 0; //Reset away view @@ -8127,8 +8127,8 @@ boolean P_SpectatorJoinGame(player_t *player) player->kartstuff[k_spectatewait] = 0; player->playerstate = PST_REBORN; - //reset camera - if (P_IsLocalPlayer(player)) + //center camera if its not already + if ((P_IsLocalPlayer(player)) && localaiming[0] != 0) localaiming[0] = 0; //Reset away view