diff --git a/OpenRA.Game/Server/Server.cs b/OpenRA.Game/Server/Server.cs index 75e3515c6f..185dca1b21 100644 --- a/OpenRA.Game/Server/Server.cs +++ b/OpenRA.Game/Server/Server.cs @@ -324,7 +324,7 @@ namespace OpenRA.Server if ( lobbyInfo.GlobalSettings.Dedicated ) { SendChatTo(newConn, "You have joined the dedicated server!"); - if (client.IsAdmin == true) + if (client.IsAdmin) SendChatTo(newConn, " You are admin now!"); else SendChatTo(newConn, " Current admin is "+adminName); @@ -492,7 +492,7 @@ namespace OpenRA.Server lobbyInfo.Clients.RemoveAll(c => c.Index == toDrop.PlayerIndex); // reassign admin if necessary - if ( lobbyInfo.GlobalSettings.Dedicated && oldCli.IsAdmin == true && !GameStarted) + if ( lobbyInfo.GlobalSettings.Dedicated && oldCli.IsAdmin && !GameStarted) { if (lobbyInfo.Clients.Count() > 0) {