From 80d875bbf7908f48b7308ef7b418b9813665a935 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Thu, 3 Sep 2015 17:55:48 +0200 Subject: adjusted wormhole search distance --- pathfinding.py | 4 ++-- 1 file 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 -- cgit v1.2.3