bool Filtered(GameServer game) { if ((game.State == (int)ServerState.GameStarted) && !showStarted) { return(true); } if ((game.State == (int)ServerState.WaitingPlayers) && !showWaiting) { return(true); } if ((game.Players == 0) && !showEmpty) { return(true); } if (!game.CompatibleVersion() && !showIncompatible) { return(true); } return(false); }