Replace Server.Dedicated with Server.Type.

This commit is contained in:
Paul Chote
2020-01-01 17:55:26 +00:00
committed by abcdefg30
parent a9f37bc9f1
commit 8f2bf27edf
4 changed files with 29 additions and 21 deletions

View File

@@ -36,7 +36,7 @@ namespace OpenRA.Mods.Common.Server
lastPing = Game.RunTime;
// Ignore client timeout in singleplayer games to make debugging easier
if (server.LobbyInfo.NonBotClients.Count() < 2 && !server.Dedicated)
if (server.LobbyInfo.NonBotClients.Count() < 2 && server.Type != ServerType.Dedicated)
foreach (var c in server.Conns.ToList())
server.SendOrderTo(c, "Ping", Game.RunTime.ToString());
else