(svn r15583) -Fix: Do not use TILE_MASK when you do not want to wrap around them map.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user