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/AutoPilot.h | |
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/AutoPilot.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/control/AutoPilot.h b/src/control/AutoPilot.h index 4c356f96..48a0c4de 100644 --- a/src/control/AutoPilot.h +++ b/src/control/AutoPilot.h @@ -26,6 +26,7 @@ enum eCarMission : uint8 MISSION_BLOCKCAR_FARAWAY, MISSION_BLOCKCAR_CLOSE, MISSION_BLOCKCAR_HANDBRAKESTOP, +#ifdef MIAMI MISSION_HELI_FLYTOCOORS, MISSION_ATTACKPLAYER, MISSION_PLANE_FLYTOCOORS, @@ -33,6 +34,7 @@ enum eCarMission : uint8 MISSION_SLOWLY_DRIVE_TOWARDS_PLAYER_1, MISSION_SLOWLY_DRIVE_TOWARDS_PLAYER_2, MISSION_BLOCKPLAYER_FORWARDANDBACK +#endif }; enum eCarTempAction : uint8 @@ -82,11 +84,18 @@ public: uint32 m_nTimeTempAction; float m_fMaxTrafficSpeed; uint8 m_nCruiseSpeed; +#ifdef MIAMI + uint8 m_nCruiseSpeedMultiplierType; + float m_fCruiseSpeedMultiplier; +#endif uint8 m_bSlowedDownBecauseOfCars : 1; uint8 m_bSlowedDownBecauseOfPeds : 1; uint8 m_bStayInCurrentLevel : 1; uint8 m_bStayInFastLane : 1; uint8 m_bIgnorePathfinding : 1; +#ifdef MIAMI + uint8 m_nSwitchDistance; +#endif CVector m_vecDestinationCoors; CPathNode *m_aPathFindNodesInfo[NUM_PATH_NODES_IN_AUTOPILOT]; int16 m_nPathFindNodesCount; @@ -116,6 +125,10 @@ public: m_nTimeToStartMission = CTimer::GetTimeInMilliseconds(); m_nAntiReverseTimer = m_nTimeToStartMission; m_bStayInFastLane = false; +#ifdef MIAMI + m_nCruiseSpeedMultiplierType = 0; + m_fCruiseSpeedMultiplier = 1.0f; +#endif } void ModifySpeed(float); @@ -126,4 +139,3 @@ public: #endif }; -static_assert(sizeof(CAutoPilot) == 0x70, "CAutoPilot: error"); |