move LobbyInfo onto OrderManager

This commit is contained in:
Bob
2010-10-11 16:00:02 +13:00
parent beecb8aeb1
commit 17990ab8b7
17 changed files with 98 additions and 88 deletions

View File

@@ -34,9 +34,9 @@ namespace OpenRA.Mods.RA
}
// create the players which are bound through slots.
foreach (var slot in Game.LobbyInfo.Slots)
foreach (var slot in w.LobbyInfo.Slots)
{
var client = Game.LobbyInfo.Clients.FirstOrDefault(c => c.Slot == slot.Index);
var client = w.LobbyInfo.Clients.FirstOrDefault(c => c.Slot == slot.Index);
if (client != null)
{
/* spawn a real player in this slot. */
@@ -101,7 +101,7 @@ namespace OpenRA.Mods.RA
static Session.Client GetClientForPlayer(Player p)
{
return Game.LobbyInfo.Clients.Single(c => c.Index == p.ClientIndex);
return p.World.LobbyInfo.ClientWithIndex(p.ClientIndex);
}
}
}