mirror of
https://github.com/halpz/re3.git
synced 2025-07-03 01:40:48 +00:00
Redo ReadSaveBuf + common.h cleanup
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
#include "General.h"
|
||||
#include "Streaming.h"
|
||||
#include "Weapon.h"
|
||||
#include "SaveBuf.h"
|
||||
|
||||
CGangInfo CGangs::Gang[NUM_GANGS];
|
||||
bool CGangs::GangAttackWithCops[NUM_GANGS];
|
||||
@ -119,6 +120,6 @@ INITSAVEBUF
|
||||
CheckSaveHeader(buf, 'G','N','G','\0', size - SAVE_HEADER_SIZE);
|
||||
|
||||
for (int i = 0; i < NUM_GANGS; i++)
|
||||
Gang[i] = ReadSaveBuf<CGangInfo>(buf);
|
||||
ReadSaveBuf(&Gang[i], buf);
|
||||
VALIDATESAVEBUF(size);
|
||||
}
|
||||
|
@ -39,6 +39,7 @@
|
||||
#include "CutsceneShadow.h"
|
||||
#include "Clock.h"
|
||||
#include "Wanted.h"
|
||||
#include "SaveBuf.h"
|
||||
|
||||
CPed *gapTempPedList[50];
|
||||
uint16 gnNumTempPedList;
|
||||
|
@ -3,6 +3,7 @@
|
||||
#include "General.h"
|
||||
#include "FileMgr.h"
|
||||
#include "PedType.h"
|
||||
#include "SaveBuf.h"
|
||||
|
||||
CPedType *CPedType::ms_apPedType[NUM_PEDTYPES];
|
||||
CPedStats *CPedStats::ms_apPedStats[NUM_PEDSTATS];
|
||||
@ -201,7 +202,7 @@ INITSAVEBUF
|
||||
CheckSaveHeader(buf, 'P', 'T', 'P', '\0', size - SAVE_HEADER_SIZE);
|
||||
|
||||
for(int i = 0; i < NUM_PEDTYPES; i++)
|
||||
*ms_apPedType[i] = ReadSaveBuf<CPedType>(buf);
|
||||
ReadSaveBuf(ms_apPedType[i], buf);
|
||||
VALIDATESAVEBUF(size)
|
||||
}
|
||||
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "Replay.h"
|
||||
#include "PedPlacement.h"
|
||||
#include "VarConsole.h"
|
||||
#include "SaveBuf.h"
|
||||
|
||||
#define PAD_MOVE_TO_GAME_WORLD_MOVE 60.0f
|
||||
|
||||
|
Reference in New Issue
Block a user