Consider spectators for waiting filter condition
This commit is contained in:
1
AUTHORS
1
AUTHORS
@@ -98,6 +98,7 @@ Also thanks to:
|
|||||||
* Kanar
|
* Kanar
|
||||||
* Kenny Hoxworth (hoxworth)
|
* Kenny Hoxworth (hoxworth)
|
||||||
* Kevin Azzam (ChaoticMind)
|
* Kevin Azzam (ChaoticMind)
|
||||||
|
* Kevin Streser
|
||||||
* Krishnakanth Mallik
|
* Krishnakanth Mallik
|
||||||
* Kyle Smith (Smitty)
|
* Kyle Smith (Smitty)
|
||||||
* Kyrre Soerensen (zypres)
|
* Kyrre Soerensen (zypres)
|
||||||
|
|||||||
@@ -844,7 +844,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
if (game.State == (int)ServerState.GameStarted && !filters.HasFlag(MPGameFilters.Started))
|
if (game.State == (int)ServerState.GameStarted && !filters.HasFlag(MPGameFilters.Started))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (game.State == (int)ServerState.WaitingPlayers && !filters.HasFlag(MPGameFilters.Waiting) && game.Players != 0)
|
if (game.State == (int)ServerState.WaitingPlayers && !filters.HasFlag(MPGameFilters.Waiting) && game.Players + game.Spectators != 0)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (game.Players + game.Spectators == 0 && !filters.HasFlag(MPGameFilters.Empty))
|
if (game.Players + game.Spectators == 0 && !filters.HasFlag(MPGameFilters.Empty))
|
||||||
|
|||||||
Reference in New Issue
Block a user