1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-30 09:59:10 +00:00

(svn r4602) - Fix: an assertion triggered when building a station near the south corner of the map (appeared in r4367)

This commit is contained in:
glx
2006-04-28 01:52:32 +00:00
parent 5b5dec4f55
commit 885de1aff9

View File

@@ -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) {