mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-25 03:41:02 +00:00
forgot about splitscreen oops
This commit is contained in:
parent
aaaf09aea3
commit
65c3d90340
1 changed files with 16 additions and 4 deletions
20
src/p_user.c
20
src/p_user.c
|
@ -8054,10 +8054,16 @@ boolean P_SpectatorJoinGame(player_t *player)
|
|||
player->kartstuff[k_spectatewait] = 0;
|
||||
player->ctfteam = changeto;
|
||||
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)
|
||||
|
@ -8082,10 +8088,16 @@ boolean P_SpectatorJoinGame(player_t *player)
|
|||
player->pflags &= ~PF_WANTSTOJOIN;
|
||||
player->kartstuff[k_spectatewait] = 0;
|
||||
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