mirror of
https://github.com/JezuzLizard/t4sp_bot_warfare.git
synced 2025-09-18 14:17:27 +00:00
Progress 3.
This commit is contained in:
@@ -316,10 +316,17 @@ ClearPriorityObjective()
|
||||
/*
|
||||
Checks whether the path generated by the ASTAR path finding is inaccessible
|
||||
*/
|
||||
GetPathIsInaccessible( to )
|
||||
GetPathIsInaccessible( to, best_effort )
|
||||
{
|
||||
path = generatePath( self.origin, to, self.team, level.bot_allowed_negotiation_links );
|
||||
return !isDefined( path ) || path.size <= 0;
|
||||
if ( isDefined( best_effort ) )
|
||||
{
|
||||
path = generatePath( self.origin, to, self.team, level.bot_allowed_negotiation_links, best_effort );
|
||||
}
|
||||
else
|
||||
{
|
||||
path = generatePath( self.origin, to, self.team, level.bot_allowed_negotiation_links );
|
||||
}
|
||||
return !isDefined( path ) || ( path.size <= 0) ;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user