Fix the ConvertSpriteToPngCommand.

This commit is contained in:
Paul Chote
2015-11-24 22:56:41 +00:00
parent 262f547271
commit 0c2d9c5ed4

View File

@@ -31,6 +31,10 @@ namespace OpenRA.Mods.Common.UtilityCommands
"Convert a shp/tmp/R8 to a series of PNGs, optionally removing shadow")] "Convert a shp/tmp/R8 to a series of PNGs, optionally removing shadow")]
public void Run(ModData modData, string[] args) public void Run(ModData modData, string[] args)
{ {
// HACK: The engine code assumes that Game.modData is set.
Game.ModData = modData;
Game.ModData.MountFiles();
var src = args[1]; var src = args[1];
var shadowIndex = new int[] { }; var shadowIndex = new int[] { };
if (args.Contains("--noshadow")) if (args.Contains("--noshadow"))