summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-02-22 13:53:41 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-02-22 13:53:41 +0100
commita122d558a26b41041276ebf6580167d7675b7592 (patch)
tree16396b22fb0bf6ba3d9891dc1d61d2291fcdddfd /src/peds
parentmerge (diff)
downloadre3-a122d558a26b41041276ebf6580167d7675b7592.tar
re3-a122d558a26b41041276ebf6580167d7675b7592.tar.gz
re3-a122d558a26b41041276ebf6580167d7675b7592.tar.bz2
re3-a122d558a26b41041276ebf6580167d7675b7592.tar.lz
re3-a122d558a26b41041276ebf6580167d7675b7592.tar.xz
re3-a122d558a26b41041276ebf6580167d7675b7592.tar.zst
re3-a122d558a26b41041276ebf6580167d7675b7592.zip
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/Population.cpp2
-rw-r--r--src/peds/Population.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/peds/Population.cpp b/src/peds/Population.cpp
index a168198b..a2dd5c38 100644
--- a/src/peds/Population.cpp
+++ b/src/peds/Population.cpp
@@ -16,6 +16,7 @@
#include "IniFile.h"
#include "VisibilityPlugins.h"
#include "PedPlacement.h"
+#include "DummyObject.h"
#define CREATION_DIST_MULT_TO_DIST 40.0f
#define CREATION_RANGE 10.0f // Being added over the CREATION_DIST_MULT_TO_DIST.
@@ -58,6 +59,7 @@ CVector &CPopulation::RegenerationForward = *(CVector*)0x8F1AD4;
WRAPPER CPed *CPopulation::AddPedInCar(CVehicle *vehicle) { EAXJMP(0x4F5800); }
WRAPPER void CPopulation::ManagePopulation(void) { EAXJMP(0x4F3B90); }
WRAPPER void CPopulation::MoveCarsAndPedsOutOfAbandonedZones(void) { EAXJMP(0x4F5BE0); }
+WRAPPER void CPopulation::ConvertToRealObject(CDummyObject* obj) { EAXJMP(0x4F45A0); }
void
CPopulation::Initialise()
diff --git a/src/peds/Population.h b/src/peds/Population.h
index d39fb209..f22926a0 100644
--- a/src/peds/Population.h
+++ b/src/peds/Population.h
@@ -6,6 +6,7 @@
class CPed;
class CVehicle;
+class CDummyObject;
struct PedGroup
{
@@ -80,4 +81,5 @@ public:
static void AddToPopulation(float, float, float, float);
static void ManagePopulation(void);
static void MoveCarsAndPedsOutOfAbandonedZones(void);
+ static void ConvertToRealObject(CDummyObject* obj);
};