summaryrefslogtreecommitdiffstats
path: root/src/control/PathFind.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-10-02 16:39:15 +0200
committerGitHub <noreply@github.com>2020-10-02 16:39:15 +0200
commit72f342245dcb876b974bf41cabeec4ccc6656159 (patch)
tree5ed235c96acbbbaa6bb01251be2553a6ca91246b /src/control/PathFind.cpp
parentMark audio code which is the same in re3 as done (diff)
parentMerge branch 'miami' of https://github.com/GTAmodding/re3 into miami (diff)
downloadre3-72f342245dcb876b974bf41cabeec4ccc6656159.tar
re3-72f342245dcb876b974bf41cabeec4ccc6656159.tar.gz
re3-72f342245dcb876b974bf41cabeec4ccc6656159.tar.bz2
re3-72f342245dcb876b974bf41cabeec4ccc6656159.tar.lz
re3-72f342245dcb876b974bf41cabeec4ccc6656159.tar.xz
re3-72f342245dcb876b974bf41cabeec4ccc6656159.tar.zst
re3-72f342245dcb876b974bf41cabeec4ccc6656159.zip
Diffstat (limited to 'src/control/PathFind.cpp')
-rw-r--r--src/control/PathFind.cpp4
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*