Fixed bug in map Retry Install

If the download failed, the map status would be MapStatus.DownloadError,
which would cause the Install method to return immediately. I've updated
the Install method now to account for MapStatus.DownloadError.
This commit is contained in:
dsimmons87
2017-11-23 21:10:22 +00:00
committed by Pavel Penev
parent 8fea476a0d
commit 65a2410738

View File

@@ -427,7 +427,7 @@ namespace OpenRA
public void Install(string mapRepositoryUrl, Action onSuccess) public void Install(string mapRepositoryUrl, Action onSuccess)
{ {
if (Status != MapStatus.DownloadAvailable || !Game.Settings.Game.AllowDownloading) if ((Status != MapStatus.DownloadError && Status != MapStatus.DownloadAvailable) || !Game.Settings.Game.AllowDownloading)
return; return;
innerData.Status = MapStatus.Downloading; innerData.Status = MapStatus.Downloading;