Show player and spawn details in the replay browser.

This commit is contained in:
Paul Chote
2014-03-23 11:57:50 +13:00
parent 272e872357
commit 55ad12d9a3
5 changed files with 213 additions and 107 deletions

View File

@@ -130,10 +130,10 @@ namespace OpenRA.Mods.RA.Widgets.Logic
color.AttachPanel(colorChooser, onExit);
}
public static Dictionary<CPos, Session.Client> GetSpawnClients(OrderManager orderManager, MapPreview preview)
public static Dictionary<CPos, Session.Client> GetSpawnClients(Session lobbyInfo, MapPreview preview)
{
var spawns = preview.SpawnPoints;
return orderManager.LobbyInfo.Clients
return lobbyInfo.Clients
.Where(c => c.SpawnPoint != 0)
.ToDictionary(c => spawns[c.SpawnPoint - 1], c => c);
}