actually only do it if its not centered

This commit is contained in:
Alug committed 2023-11-15 21:24:39 +01:00
1 parent 53febafd50
commit 9ae1f20735
1 file changed
+4 -4
+4 -4
View File
@@ -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