Change the "Empty" filter to not discard servers that have only spectators.

This commit is contained in:
Paul Chote
2017-12-24 17:04:30 +00:00
committed by reaperrr
parent bccc0f8f17
commit 8fc2caa01a

View File

@@ -689,7 +689,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
if (game.State == (int)ServerState.WaitingPlayers && !filters.HasFlag(MPGameFilters.Waiting) && game.Players != 0)
return true;
if (game.Players == 0 && !filters.HasFlag(MPGameFilters.Empty))
if ((game.Players + game.Spectators) == 0 && !filters.HasFlag(MPGameFilters.Empty))
return true;
if (!game.IsCompatible && !filters.HasFlag(MPGameFilters.Incompatible))