mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
- sam sites externalization
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@612 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+3
-3
@@ -315,7 +315,7 @@ typedef struct
|
||||
|
||||
UINT32 uiUNUSED;
|
||||
|
||||
BOOLEAN fSamSiteFound[ NUMBER_OF_SAMS ];
|
||||
BOOLEAN fSamSiteFound[ MAX_NUMBER_OF_SAMS ];
|
||||
|
||||
UINT8 ubNumTerrorists;
|
||||
UINT8 ubCambriaMedicalObjects;
|
||||
@@ -4490,7 +4490,7 @@ BOOLEAN SaveGeneralInfo( HWFILE hFile )
|
||||
|
||||
sGeneralInfo.fLastBoxingMatchWonByPlayer = gfLastBoxingMatchWonByPlayer;
|
||||
|
||||
memcpy( &sGeneralInfo.fSamSiteFound, &fSamSiteFound, NUMBER_OF_SAMS * sizeof( BOOLEAN ) );
|
||||
memcpy( &sGeneralInfo.fSamSiteFound, &fSamSiteFound, MAX_NUMBER_OF_SAMS * sizeof( BOOLEAN ) );
|
||||
|
||||
sGeneralInfo.ubNumTerrorists = gubNumTerrorists;
|
||||
sGeneralInfo.ubCambriaMedicalObjects = gubCambriaMedicalObjects;
|
||||
@@ -4756,7 +4756,7 @@ BOOLEAN LoadGeneralInfo( HWFILE hFile )
|
||||
|
||||
gfLastBoxingMatchWonByPlayer = sGeneralInfo.fLastBoxingMatchWonByPlayer;
|
||||
|
||||
memcpy( &fSamSiteFound, &sGeneralInfo.fSamSiteFound, NUMBER_OF_SAMS * sizeof( BOOLEAN ) );
|
||||
memcpy( &fSamSiteFound, &sGeneralInfo.fSamSiteFound, MAX_NUMBER_OF_SAMS * sizeof( BOOLEAN ) );
|
||||
|
||||
gubNumTerrorists = sGeneralInfo.ubNumTerrorists;
|
||||
gubCambriaMedicalObjects = sGeneralInfo.ubCambriaMedicalObjects;
|
||||
|
||||
Reference in New Issue
Block a user