fix ModData still being bogus about custom sequences
This commit is contained in:
@@ -53,7 +53,7 @@ namespace OpenRA
|
|||||||
}
|
}
|
||||||
|
|
||||||
string cachedTheatre = null;
|
string cachedTheatre = null;
|
||||||
|
bool previousMapHadSequences = true;
|
||||||
IFolder previousMapMount = null;
|
IFolder previousMapMount = null;
|
||||||
|
|
||||||
public Map PrepareMap(string uid)
|
public Map PrepareMap(string uid)
|
||||||
@@ -78,7 +78,8 @@ namespace OpenRA
|
|||||||
|
|
||||||
Rules.LoadRules(Manifest, map);
|
Rules.LoadRules(Manifest, map);
|
||||||
|
|
||||||
if (map.Theater != cachedTheatre)
|
if (map.Theater != cachedTheatre
|
||||||
|
|| previousMapHadSequences || map.Sequences.Count > 0)
|
||||||
{
|
{
|
||||||
SpriteSheetBuilder.Initialize( Rules.TileSets[map.Tileset] );
|
SpriteSheetBuilder.Initialize( Rules.TileSets[map.Tileset] );
|
||||||
CursorProvider.Initialize(Manifest.Cursors);
|
CursorProvider.Initialize(Manifest.Cursors);
|
||||||
@@ -86,6 +87,8 @@ namespace OpenRA
|
|||||||
cachedTheatre = map.Theater;
|
cachedTheatre = map.Theater;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
previousMapHadSequences = map.Sequences.Count > 0;
|
||||||
|
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user