mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
- Added Dealtar's and Zilpin's Airport Externalization
- Needed GameDir files are already committet to SVN GameDir git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2759 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -105,6 +105,7 @@
|
||||
#include "Assignments.h"
|
||||
#include "Interface Items.h"
|
||||
#include "Shopkeeper Interface.h"
|
||||
#include "postalservice.h"
|
||||
// HEADROCK HAM B1: Additional Include for HAM
|
||||
#include "MilitiaSquads.h"
|
||||
#endif
|
||||
@@ -142,6 +143,8 @@ extern void ResetJA2ClockGlobalTimers( void );
|
||||
extern void BeginLoadScreen( void );
|
||||
extern void EndLoadScreen();
|
||||
|
||||
extern CPostalService gPostalService;
|
||||
|
||||
//Global variable used
|
||||
#ifdef JA2BETAVERSION
|
||||
UINT32 guiNumberOfMapTempFiles; //Test purposes
|
||||
@@ -2807,6 +2810,13 @@ BOOLEAN SaveGame( int ubSaveGameID, STR16 pGameDesc )
|
||||
SaveGameFilePosition( FileGetPos( hFile ), "New way of saving Bobby R mailorders" );
|
||||
#endif
|
||||
|
||||
// Dealtar: New shipment system data
|
||||
if(!gPostalService.SaveShipmentListToSaveGameFile(hFile))
|
||||
{
|
||||
ScreenMsg( FONT_MCOLOR_WHITE, MSG_ERROR, L"ERROR writing mail orders");
|
||||
goto FAILED_TO_SAVE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Close the saved game file
|
||||
@@ -4131,6 +4141,17 @@ BOOLEAN LoadSavedGame( int ubSavedGameID )
|
||||
HandleOldBobbyRMailOrders();
|
||||
}
|
||||
|
||||
//Dealtar's Airport Externalization
|
||||
if( SaveGameHeader.uiSavedGameVersion >= 104 )
|
||||
{
|
||||
if ( !gPostalService.LoadShipmentListFromSaveGameFile(hFile) )
|
||||
{
|
||||
DebugMsg( TOPIC_JA2, DBG_LEVEL_3, String("gPostalService.LoadShipmentListFromSaveGameFile failed" ) );
|
||||
FileClose( hFile );
|
||||
return( FALSE );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
uiRelEndPerc += 1;
|
||||
SetRelativeStartAndEndPercentage( 0, uiRelStartPerc, uiRelEndPerc, L"Final Checks..." );
|
||||
|
||||
Reference in New Issue
Block a user