also do a local rule check after map download
This commit is contained in:
@@ -143,7 +143,7 @@ namespace OpenRA
|
|||||||
if (r.requires_upgrade)
|
if (r.requires_upgrade)
|
||||||
RuleStatus = MapRuleStatus.Invalid;
|
RuleStatus = MapRuleStatus.Invalid;
|
||||||
else
|
else
|
||||||
RuleStatus = MapRuleStatus.Cached;
|
RuleStatus = MapRuleStatus.Unknown;
|
||||||
|
|
||||||
Title = r.title;
|
Title = r.title;
|
||||||
Type = r.map_type;
|
Type = r.map_type;
|
||||||
@@ -217,7 +217,11 @@ namespace OpenRA
|
|||||||
}
|
}
|
||||||
|
|
||||||
Log.Write("debug", "Downloaded map to '{0}'", mapPath);
|
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);
|
download = new Download(mapUrl, mapPath, onDownloadProgress, onDownloadComplete);
|
||||||
|
|||||||
Reference in New Issue
Block a user