This commit is contained in:
Your Name 2020-08-30 15:43:38 -06:00
parent 08d983810c
commit 76aacccc08

View File

@ -1235,11 +1235,12 @@ doWalk(goal, dist, isScriptGoal)
self endon("goal_internal");//so that the watchOnGoal notify can happen same frame, not a frame later
distsq = dist*dist;
self thread killWalkOnEvents();
self thread watchOnGoal(goal, distsq);
if (isScriptGoal)
self thread doWalkScriptNotify();
self thread killWalkOnEvents();
self thread watchOnGoal(goal, distsq);
current = self initAStar(goal);
while(current >= 0)
{