mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-20 19:02:34 +00:00
Add the Other PlayersForExit Conditions
This commit is contained in:
parent
71b0f002c9
commit
ab8aa245d6
1 changed files with 7 additions and 0 deletions
|
@ -4490,6 +4490,13 @@ static void Command_ExitLevel_f(void)
|
|||
INT32 i;
|
||||
for (i = 0; i < MAXPLAYERS; i++)
|
||||
{
|
||||
if (!playeringame[i] || players[i].spectator || players[i].bot)
|
||||
continue;
|
||||
if (players[i].quittime > 30 * TICRATE)
|
||||
continue;
|
||||
if (players[i].lives <= 0)
|
||||
continue;
|
||||
|
||||
if ((players[i].pflags & PF_FINISHED) || players[i].exiting)
|
||||
{
|
||||
SendNetXCmd(XD_EXITLEVEL, NULL, 0);
|
||||
|
|
Loading…
Reference in a new issue