diff --git a/OpenRa.Game/Chrome.cs b/OpenRa.Game/Chrome.cs index d098393708..5e8256a9bc 100644 --- a/OpenRa.Game/Chrome.cs +++ b/OpenRa.Game/Chrome.cs @@ -57,7 +57,7 @@ namespace OpenRa.Game .Where(u => Rules.UnitInfo[u].TechLevel != -1) .ToDictionary( u => u, - u => SpriteSheetBuilder.LoadSprite(u + "icon", ".shp")); + u => SpriteSheetBuilder.LoadAllSprites(u + "icon", ".shp")[0]); tabSprites = groups.Select( (g, i) => Pair.New(g, diff --git a/OpenRa.Game/Graphics/SpriteSheetBuilder.cs b/OpenRa.Game/Graphics/SpriteSheetBuilder.cs index beb57caea0..a6a043fd8a 100644 --- a/OpenRa.Game/Graphics/SpriteSheetBuilder.cs +++ b/OpenRa.Game/Graphics/SpriteSheetBuilder.cs @@ -12,11 +12,6 @@ namespace OpenRa.Game.Graphics static Dictionary sprites; - public static Sprite LoadSprite(string filename, params string[] exts ) - { - return LoadAllSprites( filename, exts )[ 0 ]; - } - public static Sprite[] LoadAllSprites( string filename, params string[] exts ) { Sprite[] value; diff --git a/OpenRa.Game/Graphics/UnitSheetBuilder.cs b/OpenRa.Game/Graphics/UnitSheetBuilder.cs index e7da525daa..993662374d 100644 --- a/OpenRa.Game/Graphics/UnitSheetBuilder.cs +++ b/OpenRa.Game/Graphics/UnitSheetBuilder.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using Ijw.DirectX; -using OpenRa.FileFormats; using IjwFramework.Collections; +using OpenRa.FileFormats; namespace OpenRa.Game.Graphics {