mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +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)
|
if (splitscreenplayer)
|
||||||
{
|
{
|
||||||
displayplayers[splitscreenplayer] = newplayernum;
|
displayplayers[splitscreenplayer] = newplayernum;
|
||||||
|
localdisplayplayers[splitscreenplayer] = splitscreenplayer;
|
||||||
DEBFILE(va("spawning sister # %d\n", splitscreenplayer));
|
DEBFILE(va("spawning sister # %d\n", splitscreenplayer));
|
||||||
if (splitscreenplayer == 1 && botingame)
|
if (splitscreenplayer == 1 && botingame)
|
||||||
players[newplayernum].bot = 1;
|
players[newplayernum].bot = 1;
|
||||||
|
|
@ -3539,7 +3540,7 @@ static void Got_AddPlayer(UINT8 **p, INT32 playernum)
|
||||||
for (i = 0; i < MAXSPLITSCREENPLAYERS; i++)
|
for (i = 0; i < MAXSPLITSCREENPLAYERS; i++)
|
||||||
{
|
{
|
||||||
displayplayers[i] = newplayernum;
|
displayplayers[i] = newplayernum;
|
||||||
localdisplayplayers[i] = i;
|
localdisplayplayers[i] = 0;
|
||||||
}
|
}
|
||||||
splitscreen_partied[newplayernum] = true;
|
splitscreen_partied[newplayernum] = true;
|
||||||
DEBFILE("spawning me\n");
|
DEBFILE("spawning me\n");
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ G_ResetSplitscreen (int playernum)
|
||||||
while (i < MAXSPLITSCREENPLAYERS)
|
while (i < MAXSPLITSCREENPLAYERS)
|
||||||
{
|
{
|
||||||
displayplayers[i] = consoleplayer;
|
displayplayers[i] = consoleplayer;
|
||||||
localdisplayplayers[i] = i;
|
localdisplayplayers[i] = 0;
|
||||||
|
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
@ -203,6 +203,7 @@ G_AddPartyMember (int invitation, int playernum)
|
||||||
while (++i < new_party_size)
|
while (++i < new_party_size)
|
||||||
{
|
{
|
||||||
displayplayers[i] = party[i];
|
displayplayers[i] = party[i];
|
||||||
|
localdisplayplayers[i] = old_party_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
r_splitscreen = ( new_party_size - 1 );
|
r_splitscreen = ( new_party_size - 1 );
|
||||||
|
|
|
||||||
|
|
@ -7339,17 +7339,17 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
||||||
focusangle = localangle[0];
|
focusangle = localangle[0];
|
||||||
focusaiming = localaiming[0];
|
focusaiming = localaiming[0];
|
||||||
}
|
}
|
||||||
else if (player == &players[displayplayers[1]])
|
else if (player == &players[displayplayers[localdisplayplayers[1]]])
|
||||||
{
|
{
|
||||||
focusangle = localangle[1];
|
focusangle = localangle[1];
|
||||||
focusaiming = localaiming[1];
|
focusaiming = localaiming[1];
|
||||||
}
|
}
|
||||||
else if (player == &players[displayplayers[2]])
|
else if (player == &players[displayplayers[localdisplayplayers[2]]])
|
||||||
{
|
{
|
||||||
focusangle = localangle[2];
|
focusangle = localangle[2];
|
||||||
focusaiming = localaiming[2];
|
focusaiming = localaiming[2];
|
||||||
}
|
}
|
||||||
else if (player == &players[displayplayers[3]])
|
else if (player == &players[displayplayers[localdisplayplayers[3]]])
|
||||||
{
|
{
|
||||||
focusangle = localangle[3];
|
focusangle = localangle[3];
|
||||||
focusaiming = localaiming[3];
|
focusaiming = localaiming[3];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue