From f1f5df374915c3b530bd3113448b286ce292cbdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 11 Jul 2021 12:24:56 +0200 Subject: [PATCH] Fix .shp icons being misdetected as .wsa animations. --- OpenRA.Mods.Cnc/VideoLoaders/WsaLoader.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenRA.Mods.Cnc/VideoLoaders/WsaLoader.cs b/OpenRA.Mods.Cnc/VideoLoaders/WsaLoader.cs index 1ffac8ed57..217fb58768 100644 --- a/OpenRA.Mods.Cnc/VideoLoaders/WsaLoader.cs +++ b/OpenRA.Mods.Cnc/VideoLoaders/WsaLoader.cs @@ -34,6 +34,8 @@ namespace OpenRA.Mods.Cnc.VideoLoaders var start = s.Position; var frames = s.ReadUInt16(); + if (frames <= 1) // TODO: find a better way to differentiate .shp icons + return false; var x = s.ReadUInt16(); var y = s.ReadUInt16();