From c2ced41c044946dbc3dbfe0471816fc9d63401f1 Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 29 Mar 2009 18:20:02 +0000 Subject: (svn r15891) -Fix (r13464): YAPF used different penalties for aqueducts than for other water tiles. --- src/yapf/yapf_common.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/yapf/yapf_common.hpp') diff --git a/src/yapf/yapf_common.hpp b/src/yapf/yapf_common.hpp index 43fdb6886..a0725a1ff 100644 --- a/src/yapf/yapf_common.hpp +++ b/src/yapf/yapf_common.hpp @@ -160,7 +160,7 @@ public: int dy = abs(y1 - y2); int dmin = min(dx, dy); int dxy = abs(dx - dy); - int d = dmin * 7 + (dxy - 1) * (10 / 2); + int d = dmin * YAPF_TILE_CORNER_LENGTH + (dxy - 1) * (YAPF_TILE_LENGTH / 2); n.m_estimate = n.m_cost + d; assert(n.m_estimate >= n.m_parent->m_estimate); return true; -- cgit v1.2.3-54-g00ecf