also do a local rule check after map download

This commit is contained in:
Matthias Mailänder
2014-06-01 06:01:41 +02:00
parent bb57ccd5bb
commit 00662fe391

View File

@@ -143,7 +143,7 @@ namespace OpenRA
if (r.requires_upgrade)
RuleStatus = MapRuleStatus.Invalid;
else
RuleStatus = MapRuleStatus.Cached;
RuleStatus = MapRuleStatus.Unknown;
Title = r.title;
Type = r.map_type;
@@ -217,7 +217,11 @@ namespace OpenRA
}
Log.Write("debug", "Downloaded map to '{0}'", mapPath);
Game.RunAfterTick(() => UpdateFromMap(new Map(mapPath), MapClassification.User));
Game.RunAfterTick(() =>
{
UpdateFromMap(new Map(mapPath), MapClassification.User);
CacheRules();
});
};
download = new Download(mapUrl, mapPath, onDownloadProgress, onDownloadComplete);