summaryrefslogtreecommitdiff
path: root/waypoint.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-01 09:40:34 +0000
committertron <tron@openttd.org>2006-03-01 09:40:34 +0000
commit7b106a3d8f2840dc9b2fc4fb9a945d4c8834046a (patch)
treedae13aff0b6fbd0ab4a8965999993d18ae8aa952 /waypoint.c
parent28fc670fe2e053cf37784bac0e85812e5509eb15 (diff)
downloadopenttd-7b106a3d8f2840dc9b2fc4fb9a945d4c8834046a.tar.xz
(svn r3697) Rename DIAG1/DIAG2 to X resp. Y as this conveys a bit better in which direction a pieces of rail goes
Diffstat (limited to 'waypoint.c')
-rw-r--r--waypoint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/waypoint.c b/waypoint.c
index dbe5728ea..a999ef2c3 100644
--- a/waypoint.c
+++ b/waypoint.c
@@ -183,8 +183,8 @@ int32 CmdBuildTrainWaypoint(int x, int y, uint32 flags, uint32 p1, uint32 p2)
if (p1 >= GetNumCustomStations(STAT_CLASS_WAYP)) return CMD_ERROR;
if (!IsTileType(tile, MP_RAILWAY) || (
- (axis = AXIS_X, _m[tile].m5 != TRACK_BIT_DIAG1) &&
- (axis = AXIS_Y, _m[tile].m5 != TRACK_BIT_DIAG2)
+ (axis = AXIS_X, _m[tile].m5 != TRACK_BIT_X) &&
+ (axis = AXIS_Y, _m[tile].m5 != TRACK_BIT_Y)
)) {
return_cmd_error(STR_1005_NO_SUITABLE_RAILROAD_TRACK);
}