summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-09-03 17:55:48 +0200
committerFlorian Jung <flo@windfisch.org>2015-09-03 17:55:48 +0200
commit80d875bbf7908f48b7308ef7b418b9813665a935 (patch)
tree848ded9eb91bd5606be864ffe5ede5171ef6319b
parent21da63cb2c2eed36a7a062d0e1f57d6ffc36e2af (diff)
adjusted wormhole search distance
-rw-r--r--pathfinding.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pathfinding.py b/pathfinding.py
index 1de3602..23a85fd 100644
--- a/pathfinding.py
+++ b/pathfinding.py
@@ -195,7 +195,7 @@ class PathfindingTesterStrategy:
tempgrid = Grid(self.c.player.center, grid_radius, grid_density, lambda : [])
for blob in graph.blobs:
- for l in tempgrid.points_near(50, blob.point):
+ for l in tempgrid.points_near(100, blob.point):
l.append(blob)
#dist = tempgrid.distance(cell.pos)
@@ -226,7 +226,7 @@ class PathfindingTesterStrategy:
graph.grid.set(Node(val, Vec(x,y), False, graph, None, tempgrid.at(x,y)), x,y)
for blob in graph.blobs:
- blob.find_near_wormholes(50)
+ blob.find_near_wormholes(100)
return graph