diff options
author | Roman Masanin <36927roma@gmail.com> | 2020-10-24 21:26:56 +0200 |
---|---|---|
committer | Roman Masanin <36927roma@gmail.com> | 2020-10-24 21:26:56 +0200 |
commit | a12789c632897c2f1339f806158e84c565bd8580 (patch) | |
tree | f7eb31c812c3c194eeee0c8defe440e675eae567 /src/peds/CivilianPed.cpp | |
parent | mark reflections done (diff) | |
parent | Model indices edits (diff) | |
download | re3-a12789c632897c2f1339f806158e84c565bd8580.tar re3-a12789c632897c2f1339f806158e84c565bd8580.tar.gz re3-a12789c632897c2f1339f806158e84c565bd8580.tar.bz2 re3-a12789c632897c2f1339f806158e84c565bd8580.tar.lz re3-a12789c632897c2f1339f806158e84c565bd8580.tar.xz re3-a12789c632897c2f1339f806158e84c565bd8580.tar.zst re3-a12789c632897c2f1339f806158e84c565bd8580.zip |
Diffstat (limited to 'src/peds/CivilianPed.cpp')
-rw-r--r-- | src/peds/CivilianPed.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/peds/CivilianPed.cpp b/src/peds/CivilianPed.cpp index 74a7c9ba..18a0e2a3 100644 --- a/src/peds/CivilianPed.cpp +++ b/src/peds/CivilianPed.cpp @@ -34,7 +34,11 @@ CCivilianPed::CCivilianPed(ePedType pedtype, uint32 mi) : CPed(pedtype) m_bJustStoleACar = false; m_bStealCarEvenIfThereIsSomeoneInIt = false; for (int i = 0; i < ARRAY_SIZE(m_nStealWishList); i++) { - uint32 randomCarModel = CGeneral::GetRandomNumberInRange(MI_LANDSTAL, MI_LAST_VEHICLE + 1); +#ifdef FIX_BUGS + uint32 randomCarModel = CGeneral::GetRandomNumberInRange(MI_LANDSTAL, MI_LAST_VEHICLE); +#else + uint32 randomCarModel = CGeneral::GetRandomNumberInRange(MI_LANDSTAL, MI_LANDSTAL + VEHICLEMODELSIZE); +#endif if (CModelInfo::IsCarModel(randomCarModel) || CModelInfo::IsBikeModel(randomCarModel)) m_nStealWishList[i] = randomCarModel; else |