diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-09-29 21:53:12 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-09-30 01:41:42 +0200 |
commit | f71953077d2412c4542e616cc9748217dfe046c7 (patch) | |
tree | 3a3adac3c9d143686d198fff3360f8a9945cff67 /src/control/PathFind.cpp | |
parent | Merge pull request #727 from erorcun/miami (diff) | |
download | re3-f71953077d2412c4542e616cc9748217dfe046c7.tar re3-f71953077d2412c4542e616cc9748217dfe046c7.tar.gz re3-f71953077d2412c4542e616cc9748217dfe046c7.tar.bz2 re3-f71953077d2412c4542e616cc9748217dfe046c7.tar.lz re3-f71953077d2412c4542e616cc9748217dfe046c7.tar.xz re3-f71953077d2412c4542e616cc9748217dfe046c7.tar.zst re3-f71953077d2412c4542e616cc9748217dfe046c7.zip |
Diffstat (limited to 'src/control/PathFind.cpp')
-rw-r--r-- | src/control/PathFind.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/PathFind.cpp b/src/control/PathFind.cpp index 81d87b05..e85893e6 100644 --- a/src/control/PathFind.cpp +++ b/src/control/PathFind.cpp @@ -1872,8 +1872,8 @@ CPathFind::TakeWidthIntoAccountForWandering(CPathNode* nextNode, uint16 random) void CPathFind::TakeWidthIntoAccountForCoors(CPathNode* node1, CPathNode* node2, uint16 random, float* x, float* y) { - *x += (Min(node1->width, node2->width) * ((random % 16) - 7)); - *y += (Min(node1->width, node2->width) * (((random / 16) % 16) - 7)); + *x += (Min(node1->width, node2->width) * WIDTH_TO_PED_NODE_WIDTH * ((random % 16) - 7)); + *y += (Min(node1->width, node2->width) * WIDTH_TO_PED_NODE_WIDTH * (((random / 16) % 16) - 7)); } CPathNode* |