summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-06-28 04:16:21 +0200
committerSergeanur <s.anureev@yandex.ua>2021-06-28 04:16:21 +0200
commiteaebaa6db32f4f6f310ea2746ed03da23f4c8ea9 (patch)
tree140cc1e91a53777cdcb38c4cdacdcd101740965b /src/peds
parentMerge pull request #1153 from kusst/texread (diff)
parentRedo ReadSaveBuf + common.h cleanup (diff)
downloadre3-eaebaa6db32f4f6f310ea2746ed03da23f4c8ea9.tar
re3-eaebaa6db32f4f6f310ea2746ed03da23f4c8ea9.tar.gz
re3-eaebaa6db32f4f6f310ea2746ed03da23f4c8ea9.tar.bz2
re3-eaebaa6db32f4f6f310ea2746ed03da23f4c8ea9.tar.lz
re3-eaebaa6db32f4f6f310ea2746ed03da23f4c8ea9.tar.xz
re3-eaebaa6db32f4f6f310ea2746ed03da23f4c8ea9.tar.zst
re3-eaebaa6db32f4f6f310ea2746ed03da23f4c8ea9.zip
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/Gangs.cpp3
-rw-r--r--src/peds/Ped.cpp1
-rw-r--r--src/peds/PedType.cpp3
-rw-r--r--src/peds/PlayerPed.cpp1
4 files changed, 6 insertions, 2 deletions
diff --git a/src/peds/Gangs.cpp b/src/peds/Gangs.cpp
index e6de0770..5cec5e12 100644
--- a/src/peds/Gangs.cpp
+++ b/src/peds/Gangs.cpp
@@ -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];
@@ -120,6 +121,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);
}
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index 160b903c..1a8c4e35 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -39,6 +39,7 @@
#include "CutsceneShadow.h"
#include "Clock.h"
#include "Wanted.h"
+#include "SaveBuf.h"
CPed *gapTempPedList[50];
uint16 gnNumTempPedList;
diff --git a/src/peds/PedType.cpp b/src/peds/PedType.cpp
index bacb1a78..dcd4c717 100644
--- a/src/peds/PedType.cpp
+++ b/src/peds/PedType.cpp
@@ -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)
}
diff --git a/src/peds/PlayerPed.cpp b/src/peds/PlayerPed.cpp
index 5c40419e..452dda4d 100644
--- a/src/peds/PlayerPed.cpp
+++ b/src/peds/PlayerPed.cpp
@@ -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