From 09780b4ea0cebccefc50822685d2c7ad80d1a011 Mon Sep 17 00:00:00 2001 From: JezuzLizard Date: Sat, 24 Jun 2023 21:51:17 -0700 Subject: [PATCH] Change how function works. --- maps/bots/_bot_utility.gsc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maps/bots/_bot_utility.gsc b/maps/bots/_bot_utility.gsc index 63fd7f4..8ce3b99 100644 --- a/maps/bots/_bot_utility.gsc +++ b/maps/bots/_bot_utility.gsc @@ -316,10 +316,10 @@ ClearPriorityObjective() /* Checks whether the path generated by the ASTAR path finding is inaccessible */ -GetPathIsInaccessible() +GetPathIsInaccessible( to ) { - waittillframeend; - return self.bot.path_inaccessible; + path = generatePath( self.origin, to, self.team, level.bot_allowed_negotiation_links ); + return !isDefined( path ) || path.size <= 0; } /*