mirror of
https://github.com/JezuzLizard/t4sp_bot_warfare.git
synced 2025-10-30 09:26:56 +00:00
some stuff
This commit is contained in:
@@ -1767,14 +1767,14 @@ getRandomLargestStafe( dist )
|
||||
*/
|
||||
initAStar( goal )
|
||||
{
|
||||
nodes = generatePath( self.origin, goal, self.team, level.bot_allowed_negotiation_links );
|
||||
nodes = GenerateThePath( self.origin, goal, self.team );
|
||||
|
||||
if ( !isDefined( nodes ) )
|
||||
if ( !isDefined( nodes ) || nodes.size <= 0 )
|
||||
{
|
||||
//Try again to find a path to the origin using best effort algo
|
||||
nodes = generatePath( self.origin, goal, self.team, level.bot_allowed_negotiation_links, 192.0 );
|
||||
nodes = GenerateThePath( self.origin, goal, self.team, 192.0 );
|
||||
|
||||
if ( !isDefined( nodes ) )
|
||||
if ( !isDefined( nodes ) || nodes.size <= 0 )
|
||||
{
|
||||
self.bot.astar = [];
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user