summaryrefslogtreecommitdiffstats
path: root/src/control/PathFind.h
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-06-18 14:34:35 +0200
committereray orçunus <erayorcunus@gmail.com>2019-06-18 14:34:35 +0200
commit886db44936757c4ace710b40713fbae1aa575c45 (patch)
treeaf3622689fedeac10516cfdcf5f3d1f0471746b6 /src/control/PathFind.h
parentCPed fixes (diff)
parentsilly mistake in CFileLoader (diff)
downloadre3-886db44936757c4ace710b40713fbae1aa575c45.tar
re3-886db44936757c4ace710b40713fbae1aa575c45.tar.gz
re3-886db44936757c4ace710b40713fbae1aa575c45.tar.bz2
re3-886db44936757c4ace710b40713fbae1aa575c45.tar.lz
re3-886db44936757c4ace710b40713fbae1aa575c45.tar.xz
re3-886db44936757c4ace710b40713fbae1aa575c45.tar.zst
re3-886db44936757c4ace710b40713fbae1aa575c45.zip
Diffstat (limited to 'src/control/PathFind.h')
-rw-r--r--src/control/PathFind.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/control/PathFind.h b/src/control/PathFind.h
index 495c4a73..83b89953 100644
--- a/src/control/PathFind.h
+++ b/src/control/PathFind.h
@@ -65,8 +65,10 @@ struct CPathInfoForObject
int8 next;
int8 numLeftLanes;
int8 numRightLanes;
- uint8 flag;
+ uint8 crossing : 1;
};
+extern CPathInfoForObject *&InfoForTileCars;
+extern CPathInfoForObject *&InfoForTilePeds;
struct CTempNode
{
@@ -123,6 +125,11 @@ public:
void PreparePathDataForType(uint8 type, CTempNode *tempnodes, CPathInfoForObject *objectpathinfo,
float unk, CTempDetachedNode *detachednodes, int unused);
void CalcNodeCoors(int16 x, int16 y, int16 z, int32 id, CVector *out);
+ void StoreNodeInfoPed(int16 id, int16 node, int8 type, int8 next, int16 x, int16 y, int16 z, int16 width, bool crossing);
+ void StoreNodeInfoCar(int16 id, int16 node, int8 type, int8 next, int16 x, int16 y, int16 z, int16 width, int8 numLeft, int8 numRight);
+ void RegisterMapObject(CTreadable *mapObject);
+
+ bool IsPathObject(int id) { return id < PATHNODESIZE && (InfoForTileCars[id*12].type != 0 || InfoForTilePeds[id*12].type != 0); }
};
static_assert(sizeof(CPathFind) == 0x4c8f4, "CPathFind: error");