mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-26 15:13:04 -05:00
Encounter: fix game ending if player leaves when all players are down
This commit is contained in:
@ -652,6 +652,7 @@ wait_for_all_players_ready()
|
||||
{
|
||||
flag_init( "all_players_ready" );
|
||||
|
||||
prev_no_end_game_check = level.no_end_game_check;
|
||||
level.no_end_game_check = 1;
|
||||
|
||||
if ( !isDefined(level.pregame_hud) )
|
||||
@ -786,7 +787,7 @@ wait_for_all_players_ready()
|
||||
level.ready_up_hud destroy();
|
||||
level.pregame_hud destroy();
|
||||
|
||||
level.no_end_game_check = undefined;
|
||||
level.no_end_game_check = prev_no_end_game_check;
|
||||
|
||||
flag_set( "all_players_ready" );
|
||||
}
|
||||
|
@ -744,17 +744,9 @@ grief_onplayerdisconnect(disconnecting_player)
|
||||
}
|
||||
}
|
||||
|
||||
players = get_players();
|
||||
count = 0;
|
||||
foreach(player in players)
|
||||
{
|
||||
if(player != disconnecting_player && player.team == disconnecting_player.team)
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
count = countplayers(disconnecting_player.team) - 1;
|
||||
|
||||
if(count == 0)
|
||||
if(count <= 0)
|
||||
{
|
||||
encounters_team = "A";
|
||||
if(getOtherTeam(disconnecting_player.team) == "allies")
|
||||
|
Reference in New Issue
Block a user