diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-09-27 01:36:49 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-09-27 01:36:49 +0200 |
commit | a5d6c952a7be243a4c20b6aad47116dce0e51625 (patch) | |
tree | df4dd2067111b7c42038ca6189ac0ae6db11d9d6 /src/control/PathFind.cpp | |
parent | Use enums in aVehicleSettings (diff) | |
download | re3-a5d6c952a7be243a4c20b6aad47116dce0e51625.tar re3-a5d6c952a7be243a4c20b6aad47116dce0e51625.tar.gz re3-a5d6c952a7be243a4c20b6aad47116dce0e51625.tar.bz2 re3-a5d6c952a7be243a4c20b6aad47116dce0e51625.tar.lz re3-a5d6c952a7be243a4c20b6aad47116dce0e51625.tar.xz re3-a5d6c952a7be243a4c20b6aad47116dce0e51625.tar.zst re3-a5d6c952a7be243a4c20b6aad47116dce0e51625.zip |
Diffstat (limited to 'src/control/PathFind.cpp')
-rw-r--r-- | src/control/PathFind.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/control/PathFind.cpp b/src/control/PathFind.cpp index f8bc2df6..81d87b05 100644 --- a/src/control/PathFind.cpp +++ b/src/control/PathFind.cpp @@ -1869,6 +1869,13 @@ CPathFind::TakeWidthIntoAccountForWandering(CPathNode* nextNode, uint16 random) return CVector(newX, newY, pos.z); } +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)); +} + CPathNode* CPathFind::GetNode(int16 index) { |