Allow rules to be constructed from a MapPreview.

This commit is contained in:
Paul Chote
2016-03-09 19:17:14 +00:00
parent 43a3d42d31
commit be5eee0227
4 changed files with 98 additions and 17 deletions

View File

@@ -296,7 +296,8 @@ namespace OpenRA
{
try
{
return Ruleset.LoadFromMap(modData, this);
return Ruleset.Load(modData, this, Tileset, RuleDefinitions, WeaponDefinitions,
VoiceDefinitions, NotificationDefinitions, MusicDefinitions, SequenceDefinitions);
}
catch (Exception e)
{