summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-10-18 21:53:25 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-10-18 21:53:25 +0200
commita1112183def338654b5b7d1114ae3e201d7a72eb (patch)
tree56b044260cd11753d48d0d0f987a6d9bb4a93c3c /src/control
parentfix (diff)
downloadre3-a1112183def338654b5b7d1114ae3e201d7a72eb.tar
re3-a1112183def338654b5b7d1114ae3e201d7a72eb.tar.gz
re3-a1112183def338654b5b7d1114ae3e201d7a72eb.tar.bz2
re3-a1112183def338654b5b7d1114ae3e201d7a72eb.tar.lz
re3-a1112183def338654b5b7d1114ae3e201d7a72eb.tar.xz
re3-a1112183def338654b5b7d1114ae3e201d7a72eb.tar.zst
re3-a1112183def338654b5b7d1114ae3e201d7a72eb.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/PathFind.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/PathFind.cpp b/src/control/PathFind.cpp
index 5d381f66..41dc735f 100644
--- a/src/control/PathFind.cpp
+++ b/src/control/PathFind.cpp
@@ -1412,7 +1412,7 @@ CPathFind::FindNodeCoorsForScript(int32 id)
dir.Normalise();
if (dir.x < 0)
dir = -dir;
- return m_pathNodes[id].GetPosition() + CVector(-dir.y, dir.z, 0.0f) * (LANE_WIDTH / 2 + m_pathNodes[id].GetDividerWidth());
+ return m_pathNodes[id].GetPosition() + CVector(-dir.y, dir.x, 0.0f) * (LANE_WIDTH / 2 + m_pathNodes[id].GetDividerWidth());
}
float