diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-05 13:40:35 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-05 13:40:35 +0200 |
commit | ae0c83fa01b05dc2ee70acb2bd4d0e8a3945630c (patch) | |
tree | 12152b094647544a8b6bac68fe7271f37996afd5 /src/control/CarCtrl.cpp | |
parent | Merge pull request #508 from Nick007J/master (diff) | |
download | re3-ae0c83fa01b05dc2ee70acb2bd4d0e8a3945630c.tar re3-ae0c83fa01b05dc2ee70acb2bd4d0e8a3945630c.tar.gz re3-ae0c83fa01b05dc2ee70acb2bd4d0e8a3945630c.tar.bz2 re3-ae0c83fa01b05dc2ee70acb2bd4d0e8a3945630c.tar.lz re3-ae0c83fa01b05dc2ee70acb2bd4d0e8a3945630c.tar.xz re3-ae0c83fa01b05dc2ee70acb2bd4d0e8a3945630c.tar.zst re3-ae0c83fa01b05dc2ee70acb2bd4d0e8a3945630c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/CarCtrl.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp index bfa33f27..809e6f90 100644 --- a/src/control/CarCtrl.cpp +++ b/src/control/CarCtrl.cpp @@ -531,7 +531,7 @@ CCarCtrl::GenerateOneRandomCar() pVehicleModel->AvoidSameVehicleColour(&pCar->m_currentColour1, &pCar->m_currentColour2); CWorld::Add(pCar); if (carClass == COPS) - CCarAI::AddPoliceOccupants(pCar); + CCarAI::AddPoliceCarOccupants(pCar); else pCar->SetUpDriver(); if ((CGeneral::GetRandomNumber() & 0x3F) == 0){ /* 1/64 probability */ @@ -2751,3 +2751,15 @@ bool CCarCtrl::MapCouldMoveInThisArea(float x, float y) return false; #endif } + +#ifdef MIAMI +float CCarCtrl::FindSpeedMultiplierWithSpeedFromNodes(int8 type) +{ + switch (type) + { + case 1: return 1.5f; + case 2: return 2.0f; + } + return 1.0f; +} +#endif |