mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
-removed unlimited troops and queen aggression settings from savegames
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@279 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+22
-13
@@ -3086,12 +3086,6 @@ BOOLEAN SaveStrategicAI( HWFILE hFile )
|
||||
if( uiNumBytesWritten != 3 )
|
||||
return FALSE;
|
||||
FileWrite( hFile, &gfExtraElites, 1, &uiNumBytesWritten );
|
||||
if( uiNumBytesWritten != 1 )
|
||||
return FALSE;
|
||||
FileWrite( hFile, &gfAggressiveQueen, 1, &uiNumBytesWritten );
|
||||
if( uiNumBytesWritten != 1 )
|
||||
return FALSE;
|
||||
FileWrite( hFile, &gfUnlimitedTroops, 1, &uiNumBytesWritten );
|
||||
if( uiNumBytesWritten != 1 )
|
||||
return FALSE;
|
||||
FileWrite( hFile, &giGarrisonArraySize, 4, &uiNumBytesWritten );
|
||||
@@ -3215,17 +3209,32 @@ BOOLEAN LoadStrategicAI( HWFILE hFile )
|
||||
INT32 i;
|
||||
UINT8 ubSAIVersion;
|
||||
INT32 iMaxEnemyGroupSize = gGameExternalOptions.iMaxEnemyGroupSize;
|
||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"Strategic6");
|
||||
|
||||
switch( gGameOptions.ubDifficultyLevel )
|
||||
{
|
||||
case DIF_LEVEL_EASY:
|
||||
gfUnlimitedTroops = gGameExternalOptions.gfEasyUnlimitedTroops;
|
||||
gfAggressiveQueen = gGameExternalOptions.gfEasyAggressiveQueen;
|
||||
break;
|
||||
case DIF_LEVEL_MEDIUM:
|
||||
gfUnlimitedTroops = gGameExternalOptions.gfNormalUnlimitedTroops;
|
||||
gfAggressiveQueen = gGameExternalOptions.gfNormalAggressiveQueen;
|
||||
break;
|
||||
case DIF_LEVEL_HARD:
|
||||
gfUnlimitedTroops = gGameExternalOptions.gfHardUnlimitedTroops;
|
||||
gfAggressiveQueen = gGameExternalOptions.gfHardAggressiveQueen;
|
||||
break;
|
||||
case DIF_LEVEL_INSANE:
|
||||
gfUnlimitedTroops = gGameExternalOptions.gfInsaneUnlimitedTroops;
|
||||
gfAggressiveQueen = gGameExternalOptions.gfInsaneAggressiveQueen;
|
||||
break;
|
||||
}
|
||||
|
||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"Strategic6");
|
||||
FileRead( hFile, gbPadding2, 3, &uiNumBytesRead );
|
||||
if( uiNumBytesRead != 3 )
|
||||
return FALSE;
|
||||
FileRead( hFile, &gfExtraElites, 1, &uiNumBytesRead );
|
||||
if( uiNumBytesRead != 1 )
|
||||
return FALSE;
|
||||
FileRead( hFile, &gfAggressiveQueen, 1, &uiNumBytesRead );
|
||||
if( uiNumBytesRead != 1 )
|
||||
return FALSE;
|
||||
FileRead( hFile, &gfUnlimitedTroops, 1, &uiNumBytesRead );
|
||||
if( uiNumBytesRead != 1 )
|
||||
return FALSE;
|
||||
FileRead( hFile, &giGarrisonArraySize, 4, &uiNumBytesRead );
|
||||
|
||||
Reference in New Issue
Block a user