From 7b6c55c78eb9dc4bb90e9a75c47fa88fc717193b Mon Sep 17 00:00:00 2001 From: AeonLucid Date: Sat, 26 Sep 2020 01:59:29 +0200 Subject: [PATCH] Only public games in the game listing --- src/Impostor.Server/Net/Manager/GameManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Impostor.Server/Net/Manager/GameManager.cs b/src/Impostor.Server/Net/Manager/GameManager.cs index b9cc9d5..291b9d2 100644 --- a/src/Impostor.Server/Net/Manager/GameManager.cs +++ b/src/Impostor.Server/Net/Manager/GameManager.cs @@ -1,4 +1,4 @@ -using System.Collections.Concurrent; +using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Net; @@ -51,6 +51,7 @@ namespace Impostor.Server.Net.Manager // Find games that have not started yet. foreach (var (code, game) in _games.Where(x => + x.Value.IsPublic && x.Value.GameState == GameStates.NotStarted && x.Value.PlayerCount < 10)) { -- 2.39.5