From f764297be2d55c9b8350077e44e3d62a9e058bcf Mon Sep 17 00:00:00 2001 From: proller Date: Sun, 23 Jun 2013 20:23:59 +0400 Subject: Math mapgen fix, ip show on connect, pathfinder segfault fix --- src/pathfinder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pathfinder.cpp') diff --git a/src/pathfinder.cpp b/src/pathfinder.cpp index 0d1cfe476..bbda07362 100644 --- a/src/pathfinder.cpp +++ b/src/pathfinder.cpp @@ -880,7 +880,7 @@ bool pathfinder::update_cost_heuristic( v3s16 ipos, /******************************************************************************/ void pathfinder::build_path(std::vector& path,v3s16 pos, int level) { level ++; - if (level > 1000) { + if (level > 700) { ERROR_TARGET << LVL "Pathfinder: path is too long aborting" << std::endl; return; -- cgit v1.2.3