mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-21 15:32:34 +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
13
src/p_user.c
13
src/p_user.c
|
|
@ -1333,9 +1333,20 @@ void P_DoPlayerExit(player_t *player, pflags_t flags)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!demo.savebutton && P_IsMachineLocalPlayer(player))
|
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;
|
demo.savebutton = leveltime;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue