From 496cba943f312807f6bcb5deac3ff7d1334f609e Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 30 Aug 2020 15:51:26 -0600 Subject: [PATCH] fix --- userraw/maps/mp/bots/_bot_internal.gsc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/userraw/maps/mp/bots/_bot_internal.gsc b/userraw/maps/mp/bots/_bot_internal.gsc index 432677b..702eb5b 100644 --- a/userraw/maps/mp/bots/_bot_internal.gsc +++ b/userraw/maps/mp/bots/_bot_internal.gsc @@ -2231,10 +2231,11 @@ 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)