mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-25 20:01:04 +00:00
forgot about splitscreen oops
This commit is contained in:
parent
aaaf09aea3
commit
65c3d90340
1 changed files with 16 additions and 4 deletions
16
src/p_user.c
16
src/p_user.c
|
@ -8056,8 +8056,14 @@ boolean P_SpectatorJoinGame(player_t *player)
|
|||
player->playerstate = PST_REBORN;
|
||||
|
||||
//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;
|
||||
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
|
||||
if (P_IsLocalPlayer(player) && displayplayers[0] != consoleplayer)
|
||||
|
@ -8084,8 +8090,14 @@ boolean P_SpectatorJoinGame(player_t *player)
|
|||
player->playerstate = PST_REBORN;
|
||||
|
||||
//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;
|
||||
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
|
||||
if (P_IsLocalPlayer(player) && displayplayers[0] != consoleplayer)
|
||||
|
|
Loading…
Reference in a new issue