diff options
author | glx <glx@openttd.org> | 2006-04-28 01:52:32 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2006-04-28 01:52:32 +0000 |
commit | 07ac5f583b872255c1b882c33f6db5e59e023880 (patch) | |
tree | 1db40de8ba3fd6a1aac8c98d628d33d7af01ed8a | |
parent | e7f401897bf221e6fda665d88178d5d9ea857024 (diff) | |
download | openttd-07ac5f583b872255c1b882c33f6db5e59e023880.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.c | 2 |
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) { |