From cbcd413ed1092851322f6668feb2abf8a0ce436e Mon Sep 17 00:00:00 2001 From: Kevin Streser Date: Mon, 6 May 2024 10:44:54 +0200 Subject: [PATCH] Consider spectators for waiting filter condition --- AUTHORS | 1 + OpenRA.Mods.Common/Widgets/Logic/ServerListLogic.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 6e755fa8fb..c93fd0257b 100644 --- a/AUTHORS +++ b/AUTHORS @@ -98,6 +98,7 @@ Also thanks to: * Kanar * Kenny Hoxworth (hoxworth) * Kevin Azzam (ChaoticMind) + * Kevin Streser * Krishnakanth Mallik * Kyle Smith (Smitty) * Kyrre Soerensen (zypres) diff --git a/OpenRA.Mods.Common/Widgets/Logic/ServerListLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/ServerListLogic.cs index 8aeb70a7b1..12a4e4efb4 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/ServerListLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/ServerListLogic.cs @@ -844,7 +844,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic if (game.State == (int)ServerState.GameStarted && !filters.HasFlag(MPGameFilters.Started)) return true; - if (game.State == (int)ServerState.WaitingPlayers && !filters.HasFlag(MPGameFilters.Waiting) && game.Players != 0) + if (game.State == (int)ServerState.WaitingPlayers && !filters.HasFlag(MPGameFilters.Waiting) && game.Players + game.Spectators != 0) return true; if (game.Players + game.Spectators == 0 && !filters.HasFlag(MPGameFilters.Empty))