This commit is contained in:
Igor Popov
2012-06-11 02:54:47 +04:00
committed by Chris Forbes
parent b7258e61f3
commit 0a858ac353

View File

@@ -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)
{