diff --git a/OpenRA.Game/Server/Server.cs b/OpenRA.Game/Server/Server.cs index 9340a6a2a3..39f5d6bdc4 100644 --- a/OpenRA.Game/Server/Server.cs +++ b/OpenRA.Game/Server/Server.cs @@ -220,10 +220,6 @@ namespace OpenRA.Server }) { IsBackground = true }.Start(); } - /* lobby rework TODO: - * - "teams together" option for team games -- will eliminate most need - * for manual spawnpoint choosing. - */ int nextPlayerIndex; public int ChooseFreePlayerIndex() { diff --git a/OpenRA.Mods.Common/Scripting/Properties/PlayerProperties.cs b/OpenRA.Mods.Common/Scripting/Properties/PlayerProperties.cs index bbe7812119..3def7777bc 100644 --- a/OpenRA.Mods.Common/Scripting/Properties/PlayerProperties.cs +++ b/OpenRA.Mods.Common/Scripting/Properties/PlayerProperties.cs @@ -54,7 +54,7 @@ namespace OpenRA.Mods.Common.Scripting { get { - var c = Player.World.LobbyInfo.Clients[Player.ClientIndex]; + var c = Player.World.LobbyInfo.Clients.FirstOrDefault(i => i.Index == Player.ClientIndex); return c != null ? c.Team : 0; } }