Fix .shp icons being misdetected as .wsa animations.

This commit is contained in:
Matthias Mailänder
2021-07-11 12:24:56 +02:00
committed by reaperrr
parent b2f18ad0ad
commit f1f5df3749

View File

@@ -34,6 +34,8 @@ namespace OpenRA.Mods.Cnc.VideoLoaders
var start = s.Position; var start = s.Position;
var frames = s.ReadUInt16(); var frames = s.ReadUInt16();
if (frames <= 1) // TODO: find a better way to differentiate .shp icons
return false;
var x = s.ReadUInt16(); var x = s.ReadUInt16();
var y = s.ReadUInt16(); var y = s.ReadUInt16();