mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-20 23:12:37 +00:00
Splitscreen: do not show "Save Replay" button until all local party members finish
- Local members, does not count online party members
This commit is contained in:
parent
67fb52b552
commit
681e95ca0c
1 changed files with 13 additions and 2 deletions
15
src/p_user.c
15
src/p_user.c
|
|
@ -1333,8 +1333,19 @@ void P_DoPlayerExit(player_t *player, pflags_t flags)
|
|||
}
|
||||
}
|
||||
|
||||
if (!demo.savebutton && P_IsMachineLocalPlayer(player))
|
||||
demo.savebutton = leveltime;
|
||||
if (!demo.savebutton)
|
||||
{
|
||||
UINT8 outstanding = splitscreen + 1;
|
||||
for (UINT8 i = 0; i <= splitscreen; ++i)
|
||||
{
|
||||
if (players[g_localplayers[i]].exiting)
|
||||
outstanding--;
|
||||
}
|
||||
// Once the entire local party finishes (not
|
||||
// online party), show the "Save Replay" button.
|
||||
if (!outstanding)
|
||||
demo.savebutton = leveltime;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue