diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-10-18 21:15:44 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-10-18 21:15:44 +0200 |
commit | e2c29a3b28d4dfb3f1854e1eb3c6be82d3dc4e04 (patch) | |
tree | 1b2a4c155ce47c9364a21849d448a4cb812c13ba /src/peds/PedAttractor.cpp | |
parent | fixed ped attractor crash (diff) | |
download | re3-e2c29a3b28d4dfb3f1854e1eb3c6be82d3dc4e04.tar re3-e2c29a3b28d4dfb3f1854e1eb3c6be82d3dc4e04.tar.gz re3-e2c29a3b28d4dfb3f1854e1eb3c6be82d3dc4e04.tar.bz2 re3-e2c29a3b28d4dfb3f1854e1eb3c6be82d3dc4e04.tar.lz re3-e2c29a3b28d4dfb3f1854e1eb3c6be82d3dc4e04.tar.xz re3-e2c29a3b28d4dfb3f1854e1eb3c6be82d3dc4e04.tar.zst re3-e2c29a3b28d4dfb3f1854e1eb3c6be82d3dc4e04.zip |
Diffstat (limited to '')
-rw-r--r-- | src/peds/PedAttractor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peds/PedAttractor.cpp b/src/peds/PedAttractor.cpp index ee3833da..45bed947 100644 --- a/src/peds/PedAttractor.cpp +++ b/src/peds/PedAttractor.cpp @@ -386,7 +386,7 @@ bool CPedAttractor::BroadcastDeparture(CPed* pPed) else if (qid == vWaitingQueue.size() - 1) pPed->SetWanderPath(CGeneral::GetNodeHeadingFromVector(-vecQueueDir.x, -vecQueueDir.y)); else - pPed->SetWanderPath(CGeneral::GetNodeHeadingFromVector(-vecQueueDir.y, -vecQueueDir.z)); + pPed->SetWanderPath(CGeneral::GetNodeHeadingFromVector(-vecQueueDir.y, -vecQueueDir.x)); UpdatePedStateOnDeparture(pPed); } vWaitingQueue.erase(vWaitingQueue.cbegin() + qid); |