From 0af27062c4d17148f357c0da1f8b9ce996601463 Mon Sep 17 00:00:00 2001 From: smatz Date: Mon, 18 May 2009 01:26:23 +0000 Subject: (svn r16349) -Codechange: rename IsPlainRailTile() to IsPlainRail(), introduce shiny new IsPlainRailTile() --- src/pathfind.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pathfind.cpp') diff --git a/src/pathfind.cpp b/src/pathfind.cpp index d5f48cde7..921c9c684 100644 --- a/src/pathfind.cpp +++ b/src/pathfind.cpp @@ -611,7 +611,7 @@ start_at: /* Not a regular rail tile? * Then we can't use the code below, but revert to more general code. */ - if (!IsTileType(tile, MP_RAILWAY) || !IsPlainRailTile(tile)) { + if (!IsPlainRailTile(tile)) { /* We found a tile which is not a normal railway tile. * Determine which tracks that exist on this tile. */ bits = TrackdirBitsToTrackBits(TrackStatusToTrackdirBits(GetTileTrackStatus(tile, TRANSPORT_RAIL, 0)) & DiagdirReachesTrackdirs(direction)); -- cgit v1.2.3-54-g00ecf