1
This commit is contained in:
parent
3f225556df
commit
5f12ad5761
@ -191,7 +191,6 @@ void Movement::ClearPath()
|
|||||||
|
|
||||||
void Movement::AddPaths(const glm::vec3& start, std::vector<glm::vec3>& paths)
|
void Movement::AddPaths(const glm::vec3& start, std::vector<glm::vec3>& paths)
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
if (paths.empty()) {
|
if (paths.empty()) {
|
||||||
abort();
|
abort();
|
||||||
return;
|
return;
|
||||||
@ -211,7 +210,7 @@ void Movement::AddPaths(const glm::vec3& start, std::vector<glm::vec3>& paths)
|
|||||||
}
|
}
|
||||||
for (; i < paths.size(); ++i) {
|
for (; i < paths.size(); ++i) {
|
||||||
MovePathPoint p;
|
MovePathPoint p;
|
||||||
p.src_pos = last_pos;
|
p.src_pos.FromGlmVec3(last_pos);
|
||||||
p.src_pos.x *= 10.f;
|
p.src_pos.x *= 10.f;
|
||||||
p.src_pos.y *= 10.f;
|
p.src_pos.y *= 10.f;
|
||||||
p.src_pos.z *= 10.f;
|
p.src_pos.z *= 10.f;
|
||||||
@ -271,7 +270,6 @@ void Movement::AddPaths(const glm::vec3& start, std::vector<glm::vec3>& paths)
|
|||||||
#endif
|
#endif
|
||||||
paths_.push_back(p);
|
paths_.push_back(p);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
is_find_path_ = true;
|
is_find_path_ = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user