From cd1ad247231e98e83298943ac661af0990058cf9 Mon Sep 17 00:00:00 2001 From: truelight Date: Wed, 16 Nov 2005 14:41:01 +0000 Subject: (svn r3210) -Codechange: use IsRailWaypoint where possible (instead of magicnumbers) -Codechange: IsRailWaypoint should take 'tile', not 'm5' --- order_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'order_gui.c') 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; -- cgit v1.2.3-54-g00ecf