One more NodeLoc compare adjustment

This commit is contained in:
Akkadius 2017-07-18 19:16:41 -05:00
parent 7cda4aaa2c
commit 20b6c2f556

View File

@ -951,7 +951,7 @@ glm::vec3 Mob::UpdatePath(float ToX, float ToY, float ToZ, float Speed, bool &Wa
// May need to refine this as rounding errors may mean we never have equality
// Check if we have reached a path node.
if(NodeLoc == From)
if(NodeLoc.x == From.x && NodeLoc.y == From.y)
{
Log(Logs::Detail, Logs::Pathing, " Arrived at node %i, moving to next one.\n", Route.front());