From 05b01c5ff528a8fc32ac92436f3b48d5c1529415 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Wed, 11 Sep 2019 21:42:34 +0300 Subject: ccarctrl --- src/control/AutoPilot.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/control/AutoPilot.h') diff --git a/src/control/AutoPilot.h b/src/control/AutoPilot.h index 3b63a143..5a76d841 100644 --- a/src/control/AutoPilot.h +++ b/src/control/AutoPilot.h @@ -2,6 +2,7 @@ #include "Timer.h" class CVehicle; +struct CPathNode; enum eCarMission : uint8 { @@ -87,8 +88,8 @@ public: uint8 m_bStayInFastLane : 1; uint8 m_flag10 : 1; CVector m_vecDestinationCoors; - void *m_aPathFindNodesInfo[8]; - uint16 m_nPathFindNodesCount; + CPathNode *m_aPathFindNodesInfo[NUM_PATH_NODES_IN_AUTOPILOT]; + int16 m_nPathFindNodesCount; CVehicle *m_pTargetCar; CAutoPilot(void) { @@ -118,5 +119,6 @@ public: } void ModifySpeed(float); + void RemoveOnePathNode(); }; static_assert(sizeof(CAutoPilot) == 0x70, "CAutoPilot: error"); -- cgit v1.2.3