diff options
author | tron <tron@openttd.org> | 2006-03-08 06:55:33 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-08 06:55:33 +0000 |
commit | fbe939b31f8c7ea4e6e47d6d903625dd25c5e856 (patch) | |
tree | 5dc0e72ac096a8404e81f92e3e1480cb29c96061 /waypoint.c | |
parent | 313754011d04ad4913bf4028b78d75ceb359e9b3 (diff) | |
download | openttd-fbe939b31f8c7ea4e6e47d6d903625dd25c5e856.tar.xz |
(svn r3783) Replace further ints and magic numbers by Direction, DiagDirection and friends
Diffstat (limited to 'waypoint.c')
-rw-r--r-- | waypoint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/waypoint.c b/waypoint.c index a999ef2c3..8ff180875 100644 --- a/waypoint.c +++ b/waypoint.c @@ -292,7 +292,7 @@ int32 RemoveTrainWaypoint(TileIndex tile, uint32 flags, bool justremove) return CMD_ERROR; if (flags & DC_EXEC) { - int direction = _m[tile].m5 & RAIL_WAYPOINT_TRACK_MASK; + Axis direction = _m[tile].m5 & RAIL_WAYPOINT_TRACK_MASK; wp = GetWaypointByTile(tile); @@ -304,7 +304,7 @@ int32 RemoveTrainWaypoint(TileIndex tile, uint32 flags, bool justremove) MarkTileDirtyByTile(tile); } else { DoClearSquare(tile); - SetSignalsOnBothDir(tile, direction); + SetSignalsOnBothDir(tile, direction == AXIS_X ? TRACK_X : TRACK_Y); } } |