mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-06 08:08:27 +00:00
Merge remote-tracking branch 'origin/main' into dCinema
This commit is contained in:
@@ -269,6 +269,7 @@ void MovementAIComponent::PullToPoint(const NiPoint3& point) {
|
||||
|
||||
void MovementAIComponent::SetPath(std::vector<PathWaypoint> path) {
|
||||
if (path.empty()) return;
|
||||
while (!m_CurrentPath.empty()) m_CurrentPath.pop();
|
||||
std::for_each(path.rbegin(), path.rend() - 1, [this](const PathWaypoint& point) {
|
||||
this->m_CurrentPath.push(point);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user