diff options
author | truelight <truelight@openttd.org> | 2005-11-16 14:41:01 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-11-16 14:41:01 +0000 |
commit | c1b012171d2a0db4702af7f2b1616a2139e98dcd (patch) | |
tree | 214102297a7345bf5d6cf0849e439481b6c5fb1a /order_gui.c | |
parent | b739674307ee32880100387e8b05d7307f4a696f (diff) | |
download | openttd-c1b012171d2a0db4702af7f2b1616a2139e98dcd.tar.xz |
(svn r3210) -Codechange: use IsRailWaypoint where possible (instead of magicnumbers)
-Codechange: IsRailWaypoint should take 'tile', not 'm5'
Diffstat (limited to 'order_gui.c')
-rw-r--r-- | order_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/order_gui.c b/order_gui.c index 4459c1b46..adf4ab8bc 100644 --- a/order_gui.c +++ b/order_gui.c @@ -246,7 +246,7 @@ static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile) if (IsTileType(tile, MP_RAILWAY) && v->type == VEH_Train && IsTileOwner(tile, _local_player) && - (_m[tile].m5 & 0xFE) == 0xC4) { + IsRailWaypoint(tile)) { order.type = OT_GOTO_WAYPOINT; order.flags = 0; order.station = GetWaypointByTile(tile)->index; |