summaryrefslogtreecommitdiff
path: root/waypoint.c
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-05-09 08:17:33 +0000
committerrubidium <rubidium@openttd.org>2006-05-09 08:17:33 +0000
commit3dae1a9bbaa78b4cd8c9aacea2b6a4165b7975a1 (patch)
tree975779e5070a23a2c674c5848eaf2fef8b8d766a /waypoint.c
parent3c76fd331a58406313173ab0711f1aaf543c3a7e (diff)
downloadopenttd-3dae1a9bbaa78b4cd8c9aacea2b6a4165b7975a1.tar.xz
(svn r4788) - Codechange: RAILTYPE_{NORMAL,ELECTRIC,...} and RAIL_TYPE_{NORMAL,SIGNAL,...} have nearly the same name, rename RAIL_TYPE_* to RAIL_TILE_* of extra clarity
Diffstat (limited to 'waypoint.c')
-rw-r--r--waypoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/waypoint.c b/waypoint.c
index 857c25af1..2c165c3fe 100644
--- a/waypoint.c
+++ b/waypoint.c
@@ -182,7 +182,7 @@ int32 CmdBuildTrainWaypoint(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (p1 >= GetNumCustomStations(STAT_CLASS_WAYP)) return CMD_ERROR;
if (!IsTileType(tile, MP_RAILWAY) ||
- GetRailTileType(tile) != RAIL_TYPE_NORMAL || (
+ GetRailTileType(tile) != RAIL_TILE_NORMAL || (
(axis = AXIS_X, GetTrackBits(tile) != TRACK_BIT_X) &&
(axis = AXIS_Y, GetTrackBits(tile) != TRACK_BIT_Y)
)) {