Fixed issue with error prone Grid Visitors.

Increased Channel update speed.
Renamed Controller Method.
This commit is contained in:
AlgorithmX2
2014-04-22 21:49:03 -05:00
parent fa307b467e
commit 021e924098
4 changed files with 17 additions and 20 deletions
+2 -2
View File
@@ -84,7 +84,7 @@ public class PathGridCache implements IPathingGrid
used = 0;
int nodes = myGrid.getNodes().size();
ticksUntilReady = 20 + (nodes / 10);
ticksUntilReady = 20 + Math.max( 0, nodes / 100 - 20 );
channelsByBlocks = nodes * used;
channelPowerUsage = (double) channelsByBlocks / 128.0;
@@ -98,7 +98,7 @@ public class PathGridCache implements IPathingGrid
else
{
int nodes = myGrid.getNodes().size();
ticksUntilReady = 20 + (nodes / 10);
ticksUntilReady = 20 + Math.max( 0, nodes / 100 - 20 );
closedList = new HashSet();
semiOpen = new HashSet();