Support for v3 path files, removed the movement log stuff, fix for a crash or two

This commit is contained in:
KimLS
2017-07-27 23:21:45 -07:00
parent 69c6879ac9
commit 7d3f35d48b
5 changed files with 311 additions and 136 deletions
+6 -1
View File
@@ -26,7 +26,12 @@ glm::vec3 Mob::UpdatePath(float ToX, float ToY, float ToZ, float Speed, bool &Wa
PathingDestination = To;
WaypointChanged = true;
NodeReached = false;
return (*Route.begin()).pos;
if (Route.empty()) {
return From;
}
else {
return (*Route.begin()).pos;
}
}
else {
if (PathRecalcTimer->Check()) {