summaryrefslogtreecommitdiffstats
path: root/src/control/AutoPilot.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-09-11 20:42:34 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-09-11 20:42:34 +0200
commit05b01c5ff528a8fc32ac92436f3b48d5c1529415 (patch)
treeb5a12cbcb1e1daab670ada7ee728d5eda43fc9b6 /src/control/AutoPilot.h
parentMerge remote-tracking branch 'upstream/master' (diff)
downloadre3-05b01c5ff528a8fc32ac92436f3b48d5c1529415.tar
re3-05b01c5ff528a8fc32ac92436f3b48d5c1529415.tar.gz
re3-05b01c5ff528a8fc32ac92436f3b48d5c1529415.tar.bz2
re3-05b01c5ff528a8fc32ac92436f3b48d5c1529415.tar.lz
re3-05b01c5ff528a8fc32ac92436f3b48d5c1529415.tar.xz
re3-05b01c5ff528a8fc32ac92436f3b48d5c1529415.tar.zst
re3-05b01c5ff528a8fc32ac92436f3b48d5c1529415.zip
Diffstat (limited to 'src/control/AutoPilot.h')
-rw-r--r--src/control/AutoPilot.h6
1 files changed, 4 insertions, 2 deletions
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");