(svn r15583) -Fix: Do not use TILE_MASK when you do not want to wrap around them map.

This commit is contained in:
frosch
2009-02-25 21:29:50 +00:00
parent c7e324bb40
commit c5684e56ec
7 changed files with 37 additions and 57 deletions

View File

@@ -292,7 +292,7 @@ TileIndex GetNearbyTile(byte parameter, TileIndex tile)
/* Swap width and height depending on axis for railway stations */
if (IsRailwayStationTile(tile) && GetRailStationAxis(tile) == AXIS_Y) Swap(x, y);
/* Make sure we never roam outside of the map */
/* Make sure we never roam outside of the map, better wrap in that case */
return TILE_MASK(tile + TileDiffXY(x, y));
}