mirror of https://github.com/OpenTTD/OpenTTD.git
(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:
parent
5b5dec4f55
commit
885de1aff9
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue