forgot about splitscreen oops

This commit is contained in:
Alug 2024-03-30 02:17:30 +01:00
parent aaaf09aea3
commit 65c3d90340

View file

@ -8056,8 +8056,14 @@ boolean P_SpectatorJoinGame(player_t *player)
player->playerstate = PST_REBORN; player->playerstate = PST_REBORN;
//center camera if its not already //center camera if its not already
if ((P_IsLocalPlayer(player)) && localaiming[0] != 0) if ((P_IsLocalPlayer(player)) && player == &players[consoleplayer] && localaiming[0] != 0)
localaiming[0] = 0; localaiming[0] = 0;
else if ((P_IsLocalPlayer(player)) && player == &players[displayplayers[1]] && localaiming[1] != 0)
localaiming[1] = 0;
else if ((P_IsLocalPlayer(player)) && player == &players[displayplayers[2]] && localaiming[2] != 0)
localaiming[2] = 0;
else if ((P_IsLocalPlayer(player)) && player == &players[displayplayers[3]] && localaiming[3] != 0)
localaiming[3] = 0;
//Reset away view //Reset away view
if (P_IsLocalPlayer(player) && displayplayers[0] != consoleplayer) if (P_IsLocalPlayer(player) && displayplayers[0] != consoleplayer)
@ -8084,8 +8090,14 @@ boolean P_SpectatorJoinGame(player_t *player)
player->playerstate = PST_REBORN; player->playerstate = PST_REBORN;
//center camera if its not already //center camera if its not already
if ((P_IsLocalPlayer(player)) && localaiming[0] != 0) if ((P_IsLocalPlayer(player)) && player == &players[consoleplayer] && localaiming[0] != 0)
localaiming[0] = 0; localaiming[0] = 0;
else if ((P_IsLocalPlayer(player)) && player == &players[displayplayers[1]] && localaiming[1] != 0)
localaiming[1] = 0;
else if ((P_IsLocalPlayer(player)) && player == &players[displayplayers[2]] && localaiming[2] != 0)
localaiming[2] = 0;
else if ((P_IsLocalPlayer(player)) && player == &players[displayplayers[3]] && localaiming[3] != 0)
localaiming[3] = 0;
//Reset away view //Reset away view
if (P_IsLocalPlayer(player) && displayplayers[0] != consoleplayer) if (P_IsLocalPlayer(player) && displayplayers[0] != consoleplayer)