summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2006-04-28 01:52:32 +0000
committerglx <glx@openttd.org>2006-04-28 01:52:32 +0000
commit885de1aff9533376a7f7d2a0c3344403a774822a (patch)
tree1db40de8ba3fd6a1aac8c98d628d33d7af01ed8a
parent5b5dec4f55540647b836e5797f110217fe2538ea (diff)
downloadopenttd-885de1aff9533376a7f7d2a0c3344403a774822a.tar.xz
(svn r4602) - Fix: an assertion triggered when building a station near the south corner of the map (appeared in r4367)
-rw-r--r--station_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/station_cmd.c b/station_cmd.c
index b88c9f0e1..df14054ed 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -301,7 +301,7 @@ static int CountMapSquareAround(TileIndex tile, TileType type, IndustryType indu
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) {