Specify valid filetypes in tilesets

This commit is contained in:
Paul Chote
2010-06-30 20:08:31 +12:00
parent 9ca9d9a47e
commit 202d1a38d5
9 changed files with 14 additions and 25 deletions

View File

@@ -29,7 +29,7 @@ namespace OpenRA.Graphics
public static void Initialize( TileSet tileset )
{
/* .tem: hack to allow incomplete theaters (interior) to work, falling back to temperate for the missing art */
exts = new[] { "." + tileset.TileSuffix, ".shp", ".tem" };
exts = tileset.Extensions;
sprites = new Cache<string, Sprite[]>( LoadSprites );
}