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

This commit is contained in:
KimLS committed 2017-07-27 23:21:45 -07:00
1 parent 69c6879ac9
commit 7d3f35d48b
5 files changed
+311 -136

No files matched your search

+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()) {