diff options
author | eray orçunus <erayorcunus@gmail.com> | 2019-09-12 02:43:18 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2019-09-12 02:46:15 +0200 |
commit | 14c7c1d7ca722935195a20817c96b1af75046359 (patch) | |
tree | 0ed77a2bf6d999ff94b8c70aca1795db4b9173c7 /src/control/Population.cpp | |
parent | Merge pull request #202 from erorcun/erorcun (diff) | |
download | re3-14c7c1d7ca722935195a20817c96b1af75046359.tar re3-14c7c1d7ca722935195a20817c96b1af75046359.tar.gz re3-14c7c1d7ca722935195a20817c96b1af75046359.tar.bz2 re3-14c7c1d7ca722935195a20817c96b1af75046359.tar.lz re3-14c7c1d7ca722935195a20817c96b1af75046359.tar.xz re3-14c7c1d7ca722935195a20817c96b1af75046359.tar.zst re3-14c7c1d7ca722935195a20817c96b1af75046359.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/Population.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/control/Population.cpp b/src/control/Population.cpp index 83259616..3e7ab427 100644 --- a/src/control/Population.cpp +++ b/src/control/Population.cpp @@ -1,6 +1,8 @@ #include "common.h" #include "patcher.h" #include "Game.h" +#include "World.h" +#include "Entity.h" #include "Population.h" PedGroup *CPopulation::ms_pPedGroups = (PedGroup*)0x6E9248; @@ -14,3 +16,10 @@ WRAPPER void CPopulation::UpdatePedCount(uint32, bool) { EAXJMP(0x4F5A60); } WRAPPER void CPopulation::DealWithZoneChange(eLevelName oldLevel, eLevelName newLevel, bool) { EAXJMP(0x4F6200); } WRAPPER CPed *CPopulation::AddPedInCar(CVehicle *vehicle) { EAXJMP(0x4F5800); } WRAPPER bool CPopulation::IsPointInSafeZone(CVector *coors) { EAXJMP(0x4F60C0); } + +void +CPopulation::RemovePed(CEntity* ent) +{ + CWorld::Remove(ent); + delete ent; +} |