tidy uid->map lookup in ServerBrowser implementations

This commit is contained in:
Chris Forbes
2011-09-25 15:25:39 +13:00
parent 6b602d5262
commit f9eb62beee
3 changed files with 12 additions and 11 deletions

View File

@@ -81,8 +81,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
Map CurrentMap()
{
return (currentServer == null || !Game.modData.AvailableMaps.ContainsKey(currentServer.Map))
? null : Game.modData.AvailableMaps[currentServer.Map];
return (currentServer == null) ? null : Game.modData.FindMapByUid(currentServer.Map);
}
public static string GenerateModsLabel(GameServer s)