diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-05-05 17:04:43 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-05-05 17:04:43 +0200 |
commit | c2b9ddc5b8935dcd8de593c918f50886e0400319 (patch) | |
tree | 99f4d7dec983e7ad6f4071cc259c8c0de2eda2e2 /src/control/CarCtrl.cpp | |
parent | Remove Miami stuff (diff) | |
download | re3-c2b9ddc5b8935dcd8de593c918f50886e0400319.tar re3-c2b9ddc5b8935dcd8de593c918f50886e0400319.tar.gz re3-c2b9ddc5b8935dcd8de593c918f50886e0400319.tar.bz2 re3-c2b9ddc5b8935dcd8de593c918f50886e0400319.tar.lz re3-c2b9ddc5b8935dcd8de593c918f50886e0400319.tar.xz re3-c2b9ddc5b8935dcd8de593c918f50886e0400319.tar.zst re3-c2b9ddc5b8935dcd8de593c918f50886e0400319.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/CarCtrl.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp index db6139b9..927a0070 100644 --- a/src/control/CarCtrl.cpp +++ b/src/control/CarCtrl.cpp @@ -1641,6 +1641,7 @@ void CCarCtrl::PickNextNodeToChaseCar(CVehicle* pVehicle, float targetX, float t CPathNode* pTargetNode; int16 numNodes; float distanceToTargetNode; +#ifndef MIAMI if (pTarget && pTarget->m_pCurGroundEntity && pTarget->m_pCurGroundEntity->IsBuilding() && ((CBuilding*)pTarget->m_pCurGroundEntity)->GetIsATreadable() && @@ -1666,6 +1667,7 @@ void CCarCtrl::PickNextNodeToChaseCar(CVehicle* pVehicle, float targetX, float t #endif &pTargetNode, &numNodes, 1, pVehicle, &distanceToTargetNode, 999999.9f, closestNode); }else +#endif { ThePaths.DoPathSearch(0, pCurNode->GetPosition(), curNode, @@ -2749,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 |