depend on proper status in auto-downloading

This commit is contained in:
ihptru
2014-07-06 15:22:21 +04:00
parent bf1743ac6e
commit 305f76e300

View File

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