Merge pull request #10103 from pchote/fix-png-command

Fix the ConvertSpriteToPngCommand.
This commit is contained in:
Pavel Penev
2015-11-25 22:07:52 +02:00

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"))