diff options
author | rubidium <rubidium@openttd.org> | 2009-07-24 11:15:11 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-24 11:15:11 +0000 |
commit | 2c6b5237f68b1ce444f35eef6e31e7c0ff49d7cc (patch) | |
tree | a327b740ebd6f71336780c857326fe41fbe56683 /src/newgrf_commons.cpp | |
parent | 07447a1766145231e97b39993ec55d01e9be7bca (diff) | |
download | openttd-2c6b5237f68b1ce444f35eef6e31e7c0ff49d7cc.tar.xz |
(svn r16938) -Codechange: introduce helper function to tell whether a tile is either a rail station or rail waypoint tile
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 acda32481..150402647 100644 --- a/src/newgrf_commons.cpp +++ b/src/newgrf_commons.cpp @@ -291,7 +291,7 @@ TileIndex GetNearbyTile(byte parameter, TileIndex tile) if (y >= 8) y -= 16; /* Swap width and height depending on axis for railway stations */ - if (IsRailwayStationTile(tile) && GetRailStationAxis(tile) == AXIS_Y) Swap(x, y); + if (HasStationTileRail(tile) && GetRailStationAxis(tile) == AXIS_Y) Swap(x, y); /* Make sure we never roam outside of the map, better wrap in that case */ return TILE_MASK(tile + TileDiffXY(x, y)); |