Allow guessing of sprite sequence length from number of frames.

This commit is contained in:
Matthias Mailänder
2020-01-27 22:15:20 +01:00
committed by reaperrr
parent 15f8469272
commit 2049d1b26a

View File

@@ -180,7 +180,7 @@ namespace OpenRA.Mods.Common.Graphics
{
MiniYaml length;
if (d.TryGetValue("Length", out length) && length.Value == "*")
Length = frameCount - Start;
Length = Frames != null ? Frames.Length : frameCount - Start;
else
Length = LoadField(d, "Length", 1);