diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-10-24 20:33:15 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-10-24 20:33:15 +0200 |
commit | 04845a72bc2d7fe8d3b340e4fcc97ee5e5b51bdc (patch) | |
tree | 6abff88252dca361463b7b356b63afaa623b8a04 /src/peds/CivilianPed.cpp | |
parent | WaterLevel (Beachtoys) (diff) | |
download | re3-04845a72bc2d7fe8d3b340e4fcc97ee5e5b51bdc.tar re3-04845a72bc2d7fe8d3b340e4fcc97ee5e5b51bdc.tar.gz re3-04845a72bc2d7fe8d3b340e4fcc97ee5e5b51bdc.tar.bz2 re3-04845a72bc2d7fe8d3b340e4fcc97ee5e5b51bdc.tar.lz re3-04845a72bc2d7fe8d3b340e4fcc97ee5e5b51bdc.tar.xz re3-04845a72bc2d7fe8d3b340e4fcc97ee5e5b51bdc.tar.zst re3-04845a72bc2d7fe8d3b340e4fcc97ee5e5b51bdc.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 |