- 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:
bob
2007-06-26 21:25:20 +00:00
parent f87448c958
commit 1438053505
15 changed files with 436 additions and 102 deletions

View File

@@ -27,14 +27,16 @@ namespace OpenRa.FileFormats
if( srcIndex >= destIndex )
throw new NotImplementedException( string.Format( "srcIndex >= destIndex {0} {1}", srcIndex, destIndex ) );
for( int i = 0 ; i < Math.Min( count, destIndex - srcIndex ) ; i++ )
dest[ destIndex + i ] = dest[ srcIndex + i ];
if( srcIndex + count <= destIndex )
return;
for( int i = destIndex + destIndex - srcIndex ; i < destIndex + count ; i++ )
dest[ i ] = dest[ destIndex - 1 ];
if( destIndex - srcIndex == 1 )
{
for( int i = 0 ; i < count ; i++ )
dest[ destIndex + i ] = dest[ destIndex - 1 ];
}
else
{
for( int i = 0 ; i < count ; i++ )
dest[ destIndex + i ] = dest[ srcIndex + i ];
}
}
public static int DecodeInto( MemoryStream input, byte[] dest )