Removed Connection.PlayerIndex == 0 checks if favor of Session.Player.IsAdmin
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user