- bugfix in Format80
- fixed heisenburg-endianness in map loader
- THERES A BUG in the mix loading; I need another 4 bytes padding to load temperat.mix and snow.mix (not interior.mix, though)
- ShpViewer can now load and view map files
- Copy TEMPERAT, SNOW, INFERIOR (sic) mixes into $(SolutionDir) for this to work
- Left-click to reload tile-ID file, middle-click scrolls
- the tile-id file has some collisions between tile-sets, be careful about ordering if you change anything
git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1081 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
@@ -24,7 +24,7 @@ namespace OpenRa.FileFormats
|
||||
Height = reader.ReadUInt16();
|
||||
|
||||
if( Width != 24 || Height != 24 )
|
||||
throw new InvalidDataException();
|
||||
throw new InvalidDataException( string.Format( "{0}x{1}", Width, Height ) );
|
||||
|
||||
NumTiles = reader.ReadUInt16();
|
||||
reader.ReadUInt16();
|
||||
@@ -58,7 +58,10 @@ namespace OpenRa.FileFormats
|
||||
|
||||
public Bitmap GetTile( int index )
|
||||
{
|
||||
return TileBitmaps[ index ];
|
||||
if( index < TileBitmaps.Count )
|
||||
return TileBitmaps[ index ];
|
||||
else
|
||||
return null;
|
||||
}
|
||||
|
||||
public Bitmap[ , ] GetTiles( int tileNum )
|
||||
|
||||
Reference in New Issue
Block a user