(svn r4602) - Fix: an assertion triggered when building a station near the south corner of the map (appeared in r4367)
authorglx
Fri, 28 Apr 2006 01:52:32 +0000
changeset 3682 e435df955cf6
parent 3681 f0e565428f6a
child 3683 b12e634f96a1
(svn r4602) - Fix: an assertion triggered when building a station near the south corner of the map (appeared in r4367)
station_cmd.c
--- a/station_cmd.c	Thu Apr 27 23:33:38 2006 +0000
+++ b/station_cmd.c	Fri Apr 28 01:52:32 2006 +0000
@@ -301,7 +301,7 @@
 
 	for (dx = -3; dx <= 3; dx++) {
 		for (dy = -3; dy <= 3; dy++) {
-			cur_tile = tile + TileDiffXY(dx, dy);
+			cur_tile = TILE_MASK(tile + TileDiffXY(dx, dy));
 
 			if (IsTileType(cur_tile, type)) {
 				switch (type) {