- this patch allow proper loading map versions of 5.0, 5.25 and 6.0. existing mods friendly.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@447 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Lesh
2006-08-16 13:40:20 +00:00
parent 4967cfc362
commit 4afc299b60
2 changed files with 16 additions and 13 deletions
+9 -8
View File
@@ -2697,12 +2697,13 @@ BOOLEAN LoadWorld( UINT8 * puiFilename )
// Read JA2 Version ID
LOADDATA( &dMajorMapVersion, pBuffer, sizeof( FLOAT ) );
#ifdef RUSSIAN
if( dMajorMapVersion != 6.00 )
{
return FALSE;
}
#endif
// Lesh: disable this because now we accept any version map
//#ifdef RUSSIAN
// if( dMajorMapVersion != 6.00 )
// {
// return FALSE;
// }
//#endif
LOADDATA( &ubMinorMapVersion, pBuffer, sizeof( UINT8 ) );
@@ -2981,12 +2982,12 @@ BOOLEAN LoadWorld( UINT8 * puiFilename )
fp += offset;
offset = 0;
#ifdef RUSSIAN
// Lesh: read additional bytes for map major version 6.00
if( dMajorMapVersion == 6.00 )
{
UINT32 uiNums[37];
LOADDATA( uiNums, pBuffer, 37 * sizeof( INT32 ) );
}
#endif
SetRelativeStartAndEndPercentage( 0, 58, 59, L"Loading room information..." );
RenderProgressBar( 0, 100 );