mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-21 14:12:31 +00:00
Maybe fix incorrect displayplayers after adding/removing from party
This commit is contained in:
parent
06cee4a0b7
commit
a55ccbe52c
1 changed files with 12 additions and 3 deletions
|
|
@ -94,11 +94,13 @@ G_RemovePartyMember (int playernum)
|
|||
memcpy(&new_party[before], &old_party[after],
|
||||
( old_party_size - after ) * sizeof *new_party);
|
||||
|
||||
if (splitscreen_partied[playernum] &&
|
||||
localdisplayplayers[0] >= after)
|
||||
if (splitscreen_partied[playernum])
|
||||
{
|
||||
for (i = 0; i < MAXSPLITSCREENPLAYERS; ++i)
|
||||
for (i = 0; i < MAXSPLITSCREENPLAYERS &&
|
||||
localdisplayplayers[i] >= after; ++i)
|
||||
{
|
||||
localdisplayplayers[i] -= views;
|
||||
}
|
||||
}
|
||||
|
||||
views = ( old_party_size - views );
|
||||
|
|
@ -205,6 +207,13 @@ G_AddPartyMember (int invitation, int playernum)
|
|||
displayplayers[i] = party[i];
|
||||
localdisplayplayers[i] = old_party_size;
|
||||
}
|
||||
while (i < MAXSPLITSCREENPLAYERS)
|
||||
{
|
||||
displayplayers[i] = consoleplayer;
|
||||
localdisplayplayers[i] = old_party_size;
|
||||
|
||||
i++;
|
||||
}
|
||||
|
||||
r_splitscreen = ( new_party_size - 1 );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue