Removed Connection.PlayerIndex == 0 checks if favor of Session.Player.IsAdmin

This commit is contained in:
Nikita Tsukanov
2012-01-09 15:37:55 +04:00
parent 85293a482e
commit ad29926391
4 changed files with 27 additions and 23 deletions

View File

@@ -220,7 +220,12 @@ namespace OpenRA
public static bool IsHost
{
get { return orderManager.Connection.LocalClientId == 0; }
get
{
var client= orderManager.LobbyInfo.ClientWithIndex (
orderManager.Connection.LocalClientId);
return ((client!=null) && client.IsAdmin);
}
}
public static Dictionary<String, Mod> CurrentMods