mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-04 02:11:15 +00:00
Fix camera angle of party players
This commit is contained in:
parent
e235267f1d
commit
06cee4a0b7
3 changed files with 7 additions and 5 deletions
|
|
@ -3529,6 +3529,7 @@ static void Got_AddPlayer(UINT8 **p, INT32 playernum)
|
|||
if (splitscreenplayer)
|
||||
{
|
||||
displayplayers[splitscreenplayer] = newplayernum;
|
||||
localdisplayplayers[splitscreenplayer] = splitscreenplayer;
|
||||
DEBFILE(va("spawning sister # %d\n", splitscreenplayer));
|
||||
if (splitscreenplayer == 1 && botingame)
|
||||
players[newplayernum].bot = 1;
|
||||
|
|
@ -3539,7 +3540,7 @@ static void Got_AddPlayer(UINT8 **p, INT32 playernum)
|
|||
for (i = 0; i < MAXSPLITSCREENPLAYERS; i++)
|
||||
{
|
||||
displayplayers[i] = newplayernum;
|
||||
localdisplayplayers[i] = i;
|
||||
localdisplayplayers[i] = 0;
|
||||
}
|
||||
splitscreen_partied[newplayernum] = true;
|
||||
DEBFILE("spawning me\n");
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ G_ResetSplitscreen (int playernum)
|
|||
while (i < MAXSPLITSCREENPLAYERS)
|
||||
{
|
||||
displayplayers[i] = consoleplayer;
|
||||
localdisplayplayers[i] = i;
|
||||
localdisplayplayers[i] = 0;
|
||||
|
||||
i++;
|
||||
}
|
||||
|
|
@ -203,6 +203,7 @@ G_AddPartyMember (int invitation, int playernum)
|
|||
while (++i < new_party_size)
|
||||
{
|
||||
displayplayers[i] = party[i];
|
||||
localdisplayplayers[i] = old_party_size;
|
||||
}
|
||||
|
||||
r_splitscreen = ( new_party_size - 1 );
|
||||
|
|
|
|||
|
|
@ -7339,17 +7339,17 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
|||
focusangle = localangle[0];
|
||||
focusaiming = localaiming[0];
|
||||
}
|
||||
else if (player == &players[displayplayers[1]])
|
||||
else if (player == &players[displayplayers[localdisplayplayers[1]]])
|
||||
{
|
||||
focusangle = localangle[1];
|
||||
focusaiming = localaiming[1];
|
||||
}
|
||||
else if (player == &players[displayplayers[2]])
|
||||
else if (player == &players[displayplayers[localdisplayplayers[2]]])
|
||||
{
|
||||
focusangle = localangle[2];
|
||||
focusaiming = localaiming[2];
|
||||
}
|
||||
else if (player == &players[displayplayers[3]])
|
||||
else if (player == &players[displayplayers[localdisplayplayers[3]]])
|
||||
{
|
||||
focusangle = localangle[3];
|
||||
focusaiming = localaiming[3];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue