From bb57ccd5bbabc094caf22576c708be84a29f47ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Fri, 30 May 2014 18:14:28 +0200 Subject: [PATCH] update MapRuleStatus after download fixes #5479 --- OpenRA.Game/Map/MapPreview.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/OpenRA.Game/Map/MapPreview.cs b/OpenRA.Game/Map/MapPreview.cs index 5207b1327d..36d14f66f7 100755 --- a/OpenRA.Game/Map/MapPreview.cs +++ b/OpenRA.Game/Map/MapPreview.cs @@ -132,13 +132,19 @@ namespace OpenRA { var r = FieldLoader.Load(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;