summaryrefslogtreecommitdiff
path: root/src/yapf
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-02-14 15:59:16 +0000
committerfrosch <frosch@openttd.org>2008-02-14 15:59:16 +0000
commit43c0f7ea8efdd6915b5ca1d311fa1186175b2e52 (patch)
treea43464406df621d20a7dd83755ef86ae3474e9ea /src/yapf
parent739b118c6b79ca85be89aed3653abf046b1640f0 (diff)
downloadopenttd-43c0f7ea8efdd6915b5ca1d311fa1186175b2e52.tar.xz
(svn r12141) -Codechange: Introduce IsNormalRoad[Tile](), IsRoadDepot[Tile]() and HasTileRoadType(); and use them.
Diffstat (limited to 'src/yapf')
-rw-r--r--src/yapf/follow_track.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yapf/follow_track.hpp b/src/yapf/follow_track.hpp
index 09bc98b76..07a6b15b3 100644
--- a/src/yapf/follow_track.hpp
+++ b/src/yapf/follow_track.hpp
@@ -44,7 +44,7 @@ struct CFollowTrackT : public FollowTrack_t
/** Tests if a tile is a road tile with a single tramtrack (tram can reverse) */
FORCEINLINE DiagDirection GetSingleTramBit(TileIndex tile)
{
- if (IsTram() && IsTileType(tile, MP_ROAD) && GetRoadTileType(tile) == ROAD_TILE_NORMAL) {
+ if (IsTram() && IsNormalRoadTile(tile)) {
RoadBits rb = GetRoadBits(tile, ROADTYPE_TRAM);
switch (rb) {
case ROAD_NW: return DIAGDIR_NW;