diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-03-22 15:23:40 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-03-22 15:23:40 +0100 |
commit | 34b18815286938176b0462ba5a97ea03195409fb (patch) | |
tree | 62e01aacd06b12acb897dc48b45ca800ed77d44d /src/peds/PedRoutes.cpp | |
parent | bullet traces fixes (diff) | |
download | re3-34b18815286938176b0462ba5a97ea03195409fb.tar re3-34b18815286938176b0462ba5a97ea03195409fb.tar.gz re3-34b18815286938176b0462ba5a97ea03195409fb.tar.bz2 re3-34b18815286938176b0462ba5a97ea03195409fb.tar.lz re3-34b18815286938176b0462ba5a97ea03195409fb.tar.xz re3-34b18815286938176b0462ba5a97ea03195409fb.tar.zst re3-34b18815286938176b0462ba5a97ea03195409fb.zip |
Diffstat (limited to 'src/peds/PedRoutes.cpp')
-rw-r--r-- | src/peds/PedRoutes.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/peds/PedRoutes.cpp b/src/peds/PedRoutes.cpp index 9b7dafd4..3bc17002 100644 --- a/src/peds/PedRoutes.cpp +++ b/src/peds/PedRoutes.cpp @@ -5,6 +5,15 @@ CRouteNode (&gaRoutes)[NUMPEDROUTES] = *(CRouteNode(*)[NUMPEDROUTES]) * (uintptr*)0x62E090; +void +CRouteNode::Initialise() +{ + for (int i = 0; i < NUMPEDROUTES; i++) { + gaRoutes[i].m_route = -1; + gaRoutes[i].m_pos = CVector(0.0f, 0.0f, 0.0f); + } +} + int16 CRouteNode::GetRouteThisPointIsOn(int16 point) { |