# HG changeset patch # User glx # Date 1146189152 0 # Node ID e435df955cf6e77964ece9e30860cb025d213082 # Parent f0e565428f6a0bc1d1ba9dbaca14a650034aff4c (svn r4602) - Fix: an assertion triggered when building a station near the south corner of the map (appeared in r4367) diff -r f0e565428f6a -r e435df955cf6 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) {