This commit is contained in:
Nikolay Korolev 2020-10-18 22:15:44 +03:00
parent fb80236214
commit e2c29a3b28

View File

@ -386,7 +386,7 @@ bool CPedAttractor::BroadcastDeparture(CPed* pPed)
else if (qid == vWaitingQueue.size() - 1) else if (qid == vWaitingQueue.size() - 1)
pPed->SetWanderPath(CGeneral::GetNodeHeadingFromVector(-vecQueueDir.x, -vecQueueDir.y)); pPed->SetWanderPath(CGeneral::GetNodeHeadingFromVector(-vecQueueDir.x, -vecQueueDir.y));
else else
pPed->SetWanderPath(CGeneral::GetNodeHeadingFromVector(-vecQueueDir.y, -vecQueueDir.z)); pPed->SetWanderPath(CGeneral::GetNodeHeadingFromVector(-vecQueueDir.y, -vecQueueDir.x));
UpdatePedStateOnDeparture(pPed); UpdatePedStateOnDeparture(pPed);
} }
vWaitingQueue.erase(vWaitingQueue.cbegin() + qid); vWaitingQueue.erase(vWaitingQueue.cbegin() + qid);