wpedit md

This commit is contained in:
INeedBots
2020-12-12 23:56:30 -06:00
parent 59864b8fea
commit 810e2ee9c8
3 changed files with 9 additions and 5 deletions

View File

View File

@ -127,6 +127,10 @@ watchAstarCommand()
for (;;)
{
self waittill("astar");
if (1)
continue;
self iprintln("Start AStar");
self.astar = undefined;
astar = spawnStruct();
@ -136,7 +140,7 @@ watchAstarCommand()
self iprintln("End AStar");
astar.goal = self.origin;
astar.nodes = AStarSearch(astar.start, astar.goal, self.team, false);
astar.nodes = AStarSearch(astar.start, astar.goal, undefined, true);
self iprintln("AStar size: " + astar.nodes.size);
self.astar = astar;