Apply cjhopman's patch #1041 to fix bug #11418.

This commit is contained in:
Eric S. Raymond 2008-04-03 12:51:36 +00:00
parent 219ab02d6a
commit f9dab4a0f4

View file

@ -91,7 +91,7 @@ bool tiles_adjacent(const gamemap::location& a, const gamemap::location& b)
const int xdiff = abs(a.x - b.x);
const int ydiff = abs(a.y - b.y);
return ydiff == (1 && a.x == b.x) || (xdiff == 1 && a.y == b.y) ||
return (ydiff == 1 && a.x == b.x) || (xdiff == 1 && a.y == b.y) ||
(xdiff == 1 && ydiff == 1 && (a.y > b.y ? is_even(a.x) : is_even(b.x)));
}