mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
-added aggressive queen and unlimited troop settings to save/load game code
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@276 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -3086,6 +3086,12 @@ 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 );
|
||||
@@ -3214,6 +3220,12 @@ DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"Strategic6");
|
||||
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