give user info that new map has been downloaded (being in lobby). so he is not confused with the reason of black screen

This commit is contained in:
Igor Popov
2013-03-23 19:46:41 +04:00
parent 1005c0bc08
commit 10ec82d1bb

View File

@@ -321,7 +321,10 @@ namespace OpenRA.Mods.RA.Widgets.Logic
if (!Game.modData.AvailableMaps.ContainsKey (MapUid))
if (Game.Settings.Game.AllowDownloading)
{
Game.DownloadMap (MapUid);
Game.Debug("A new map has been downloaded...");
}
else
throw new InvalidOperationException("Server's new map doesn't exist on your system and Downloading turned off");
Map = new Map(Game.modData.AvailableMaps[MapUid].Path);