mirror of
https://github.com/JezuzLizard/t4sp_bot_warfare.git
synced 2025-09-18 22:27:27 +00:00
Fix multiple script errors.
Bot objective and action improvements.
This commit is contained in:
@@ -1538,9 +1538,11 @@ doWalk( goal, dist, isScriptGoal )
|
||||
path_was_truncated = ( current + 1 ) >= 32;
|
||||
|
||||
//Couldn't generate path to goal
|
||||
self.path_inaccessible = false;
|
||||
if ( current <= -1 )
|
||||
{
|
||||
self notify( "bad_path_internal" );
|
||||
self.path_inaccessible = true;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1757,7 +1759,7 @@ getRandomLargestStafe( dist )
|
||||
*/
|
||||
initAStar( goal )
|
||||
{
|
||||
nodes = generatePath( self.origin, goal, self.team, false );
|
||||
nodes = generatePath( self.origin, goal, self.team, level.bot_allowed_negotiation_links );
|
||||
|
||||
if ( !isDefined( nodes ) )
|
||||
{
|
||||
|
Reference in New Issue
Block a user