From e2c29a3b28d4dfb3f1854e1eb3c6be82d3dc4e04 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sun, 18 Oct 2020 22:15:44 +0300 Subject: fix --- src/peds/PedAttractor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3