summaryrefslogtreecommitdiffstats
path: root/src/control/PathFind.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-17 09:17:38 +0200
committerSergeanur <s.anureev@yandex.ua>2020-04-17 09:17:38 +0200
commitb9c8ce0d37b2f094e2d8fe1a71db009718a0a006 (patch)
tree4861c474aa232d2914f5b6b3bc11a8e62a9ceccb /src/control/PathFind.cpp
parentMerge remote-tracking branch 'samler/world' into Standalone (diff)
parentrem refs (diff)
downloadre3-b9c8ce0d37b2f094e2d8fe1a71db009718a0a006.tar
re3-b9c8ce0d37b2f094e2d8fe1a71db009718a0a006.tar.gz
re3-b9c8ce0d37b2f094e2d8fe1a71db009718a0a006.tar.bz2
re3-b9c8ce0d37b2f094e2d8fe1a71db009718a0a006.tar.lz
re3-b9c8ce0d37b2f094e2d8fe1a71db009718a0a006.tar.xz
re3-b9c8ce0d37b2f094e2d8fe1a71db009718a0a006.tar.zst
re3-b9c8ce0d37b2f094e2d8fe1a71db009718a0a006.zip
Diffstat (limited to '')
-rw-r--r--src/control/PathFind.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/control/PathFind.cpp b/src/control/PathFind.cpp
index 9f45c454..d9594490 100644
--- a/src/control/PathFind.cpp
+++ b/src/control/PathFind.cpp
@@ -12,7 +12,7 @@ bool gbShowPedPaths;
bool gbShowCarPaths;
bool gbShowCarPathsLinks;
-CPathFind &ThePaths = *(CPathFind*)0x8F6754;
+CPathFind ThePaths;
#define MAX_DIST INT16_MAX-1
#define MIN_PED_ROUTE_DISTANCE 23.8f
@@ -21,11 +21,11 @@ CPathFind &ThePaths = *(CPathFind*)0x8F6754;
// 1 UseInRoadBlock
// 2 east/west road(?)
-CPathInfoForObject *&InfoForTileCars = *(CPathInfoForObject**)0x8F1A8C;
-CPathInfoForObject *&InfoForTilePeds = *(CPathInfoForObject**)0x8F1AE4;
+CPathInfoForObject *InfoForTileCars;
+CPathInfoForObject *InfoForTilePeds;
// unused
-CTempDetachedNode *&DetachedNodesCars = *(CTempDetachedNode**)0x8E2824;
-CTempDetachedNode *&DetachedNodesPeds = *(CTempDetachedNode**)0x8E28A0;
+CTempDetachedNode *DetachedNodesCars;
+CTempDetachedNode *DetachedNodesPeds;
bool
CPedPath::CalcPedRoute(int8 pathType, CVector position, CVector destination, CVector *pointPoses, int16 *pointsFound, int16 maxPoints)