Merge pull request #5839 from ihptru/downloadingstatus

depend on proper status in auto-downloading
This commit is contained in:
Matthias Mailänder
2014-07-06 17:46:04 +02:00

View File

@@ -39,7 +39,6 @@ namespace OpenRA
public readonly int[] spawnpoints = {};
public readonly string minimap;
public readonly bool downloading;
public readonly bool requires_upgrade;
}
public class MapPreview
@@ -131,15 +130,10 @@ namespace OpenRA
if (!r.downloading)
{
Status = MapStatus.Unavailable;
RuleStatus = MapRuleStatus.Invalid;
return;
}
// Map is not useable by the current version
if (r.requires_upgrade)
RuleStatus = MapRuleStatus.Invalid;
else
RuleStatus = MapRuleStatus.Unknown;
Title = r.title;
Type = r.map_type;
Author = r.author;