cleaner
This commit is contained in:
@@ -324,7 +324,7 @@ namespace OpenRA.Server
|
|||||||
if ( lobbyInfo.GlobalSettings.Dedicated )
|
if ( lobbyInfo.GlobalSettings.Dedicated )
|
||||||
{
|
{
|
||||||
SendChatTo(newConn, "You have joined the dedicated server!");
|
SendChatTo(newConn, "You have joined the dedicated server!");
|
||||||
if (client.IsAdmin == true)
|
if (client.IsAdmin)
|
||||||
SendChatTo(newConn, " You are admin now!");
|
SendChatTo(newConn, " You are admin now!");
|
||||||
else
|
else
|
||||||
SendChatTo(newConn, " Current admin is "+adminName);
|
SendChatTo(newConn, " Current admin is "+adminName);
|
||||||
@@ -492,7 +492,7 @@ namespace OpenRA.Server
|
|||||||
lobbyInfo.Clients.RemoveAll(c => c.Index == toDrop.PlayerIndex);
|
lobbyInfo.Clients.RemoveAll(c => c.Index == toDrop.PlayerIndex);
|
||||||
|
|
||||||
// reassign admin if necessary
|
// reassign admin if necessary
|
||||||
if ( lobbyInfo.GlobalSettings.Dedicated && oldCli.IsAdmin == true && !GameStarted)
|
if ( lobbyInfo.GlobalSettings.Dedicated && oldCli.IsAdmin && !GameStarted)
|
||||||
{
|
{
|
||||||
if (lobbyInfo.Clients.Count() > 0)
|
if (lobbyInfo.Clients.Count() > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user