diff options
author | erorcun <erayorcunus@gmail.com> | 2020-03-28 17:12:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-28 17:12:22 +0100 |
commit | c056871e0766c587e45797405f6432715beba810 (patch) | |
tree | 8b0d0c7f364decebaaeacc8a328491404213964a /src/peds/Population.cpp | |
parent | Merge pull request #362 from Fire-Head/master (diff) | |
parent | CCopPed done and #include cleanup (diff) | |
download | re3-c056871e0766c587e45797405f6432715beba810.tar re3-c056871e0766c587e45797405f6432715beba810.tar.gz re3-c056871e0766c587e45797405f6432715beba810.tar.bz2 re3-c056871e0766c587e45797405f6432715beba810.tar.lz re3-c056871e0766c587e45797405f6432715beba810.tar.xz re3-c056871e0766c587e45797405f6432715beba810.tar.zst re3-c056871e0766c587e45797405f6432715beba810.zip |
Diffstat (limited to 'src/peds/Population.cpp')
-rw-r--r-- | src/peds/Population.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/peds/Population.cpp b/src/peds/Population.cpp index 6b674dd3..3bf81066 100644 --- a/src/peds/Population.cpp +++ b/src/peds/Population.cpp @@ -4,6 +4,8 @@ #include "General.h" #include "World.h" #include "Population.h" +#include "CopPed.h" +#include "Wanted.h" #include "FileMgr.h" #include "Gangs.h" #include "ModelIndices.h" @@ -11,6 +13,7 @@ #include "CivilianPed.h" #include "EmergencyPed.h" #include "Replay.h" +#include "Camera.h" #include "CutsceneMgr.h" #include "CarCtrl.h" #include "IniFile.h" @@ -110,7 +113,8 @@ CPopulation::ChooseCivilianOccupation(int32 group) return ms_pPedGroups[group].models[CGeneral::GetRandomNumberInRange(0, NUMMODELSPERPEDGROUP)]; } -eCopType +// returns eCopType +int32 CPopulation::ChoosePolicePedOccupation() { CGeneral::GetRandomNumber(); @@ -512,9 +516,9 @@ CPopulation::AddPed(ePedType pedType, uint32 miOrCopType, CVector const &coors) uint32 weapon; if (CGeneral::GetRandomNumberInRange(0, 100) >= 50) - weapon = ped->GiveWeapon(CGangs::GetGangInfo(pedType - PEDTYPE_GANG1)->m_Weapon2, 25001); + weapon = ped->GiveWeapon((eWeaponType)CGangs::GetGangInfo(pedType - PEDTYPE_GANG1)->m_Weapon2, 25001); else - weapon = ped->GiveWeapon(CGangs::GetGangInfo(pedType - PEDTYPE_GANG1)->m_Weapon1, 25001); + weapon = ped->GiveWeapon((eWeaponType)CGangs::GetGangInfo(pedType - PEDTYPE_GANG1)->m_Weapon1, 25001); ped->SetCurrentWeapon(weapon); return ped; } |