summaryrefslogtreecommitdiffstats
path: root/src/control/PathFind.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-06-18 09:50:26 +0200
committeraap <aap@papnet.eu>2019-06-18 09:50:26 +0200
commit3b64bd1b4a5008b14b54edb257d4e8a5a8277c26 (patch)
treeca1ba1aef3b1c654f586d43b12dc27ea41c513b8 /src/control/PathFind.h
parentfixed anim bug (diff)
downloadre3-3b64bd1b4a5008b14b54edb257d4e8a5a8277c26.tar
re3-3b64bd1b4a5008b14b54edb257d4e8a5a8277c26.tar.gz
re3-3b64bd1b4a5008b14b54edb257d4e8a5a8277c26.tar.bz2
re3-3b64bd1b4a5008b14b54edb257d4e8a5a8277c26.tar.lz
re3-3b64bd1b4a5008b14b54edb257d4e8a5a8277c26.tar.xz
re3-3b64bd1b4a5008b14b54edb257d4e8a5a8277c26.tar.zst
re3-3b64bd1b4a5008b14b54edb257d4e8a5a8277c26.zip
Diffstat (limited to '')
-rw-r--r--src/control/PathFind.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/control/PathFind.h b/src/control/PathFind.h
index ed3c7e9f..83b89953 100644
--- a/src/control/PathFind.h
+++ b/src/control/PathFind.h
@@ -67,6 +67,8 @@ struct CPathInfoForObject
int8 numRightLanes;
uint8 crossing : 1;
};
+extern CPathInfoForObject *&InfoForTileCars;
+extern CPathInfoForObject *&InfoForTilePeds;
struct CTempNode
{
@@ -125,6 +127,9 @@ public:
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");