update MapRuleStatus after download

fixes #5479
This commit is contained in:
Matthias Mailänder
2014-05-30 18:14:28 +02:00
parent d6fe3c5fc3
commit bb57ccd5bb

View File

@@ -132,13 +132,19 @@ namespace OpenRA
{
var r = FieldLoader.Load<RemoteMapData>(yaml);
// Map is not useable by the current version
if (!r.downloading || r.requires_upgrade)
// Map download has been disabled server side
if (!r.downloading)
{
Status = MapStatus.Unavailable;
return;
}
// Map is not useable by the current version
if (r.requires_upgrade)
RuleStatus = MapRuleStatus.Invalid;
else
RuleStatus = MapRuleStatus.Cached;
Title = r.title;
Type = r.map_type;
Author = r.author;