diff options
author | frosch <frosch@openttd.org> | 2009-02-25 21:29:50 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-02-25 21:29:50 +0000 |
commit | c5684e56ec96f530178d7e66aebb830fe6829974 (patch) | |
tree | b564a00f660cd32d8c8f6fbeca4fd2642c760312 /src/newgrf_commons.cpp | |
parent | c7e324bb400d3d9fa5d1db5c0330861f366949af (diff) | |
download | openttd-c5684e56ec96f530178d7e66aebb830fe6829974.tar.xz |
(svn r15583) -Fix: Do not use TILE_MASK when you do not want to wrap around them map.
Diffstat (limited to 'src/newgrf_commons.cpp')
-rw-r--r-- | src/newgrf_commons.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_commons.cpp b/src/newgrf_commons.cpp index b96d6aedf..266d801ac 100644 --- a/src/newgrf_commons.cpp +++ b/src/newgrf_commons.cpp @@ -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)); } |