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 | 8cfcdaa733684b00500f7811087312e6d8e60bc0 (patch) | |
tree | 5dc0e72ac096a8404e81f92e3e1480cb29c96061 /waypoint.c | |
parent | 3027b8673e31b52f50201e9571612a946cb3aade (diff) | |
download | openttd-8cfcdaa733684b00500f7811087312e6d8e60bc0.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); } } |