From: AeonLucid Date: Fri, 25 Sep 2020 23:59:29 +0000 (+0200) Subject: Only public games in the game listing X-Git-Tag: v1.1.0~1^2~41 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=7b6c55c78eb9dc4bb90e9a75c47fa88fc717193b;p=rhonda%2Fimpostor.git Only public games in the game listing --- 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)) {