]> git.deb.at Git - rhonda/impostor.git/commitdiff
Only public games in the game listing
authorAeonLucid <aeonlucid@gmail.com>
Fri, 25 Sep 2020 23:59:29 +0000 (01:59 +0200)
committerAeonLucid <aeonlucid@gmail.com>
Fri, 25 Sep 2020 23:59:29 +0000 (01:59 +0200)
src/Impostor.Server/Net/Manager/GameManager.cs

index b9cc9d59340456efee854f1b43682b7c19965189..291b9d2078983edae7d93cc6b7854bb79fac5788 100644 (file)
@@ -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))
             {