From 397cc50f61768c73dd4a1ddea03fd5e763d85b50 Mon Sep 17 00:00:00 2001 From: darkvater Date: Sun, 14 Nov 2004 13:07:07 +0000 Subject: (svn r587) -newgrf: Rename all /Checkpoint/i tokens to 'Waypoint's. The name actually makes some sense and is also compatible with TTDPatch (pasky). --- order_gui.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'order_gui.c') diff --git a/order_gui.c b/order_gui.c index 4df0fdd1f..68b19e7bd 100644 --- a/order_gui.c +++ b/order_gui.c @@ -111,9 +111,9 @@ static void DrawOrdersWindow(Window *w) if (v->type == VEH_Train) s += (ord>>6)&2; SET_DPARAM16(1, s + ((ord>>6)&1) ); - } else if ((ord & OT_MASK) == OT_GOTO_CHECKPOINT) { + } else if ((ord & OT_MASK) == OT_GOTO_WAYPOINT) { SET_DPARAM16(2, ord >> 8); - SET_DPARAM16(1, STR_GO_TO_CHECKPOINT); + SET_DPARAM16(1, STR_GO_TO_WAYPOINT); } } { @@ -195,12 +195,12 @@ static uint GetOrderCmdFromTile(Vehicle *v, uint tile) } } - // check checkpoint + // check waypoint if (IS_TILETYPE(tile, MP_RAILWAY) && v->type == VEH_Train && _map_owner[tile] == _local_player && (_map5[tile]&0xFE)==0xC4) - return (GetCheckpointByTile(tile)<<8) | OT_GOTO_CHECKPOINT; + return (GetWaypointByTile(tile)<<8) | OT_GOTO_WAYPOINT; if (IS_TILETYPE(tile, MP_STATION)) { st = DEREF_STATION(st_index = _map2[tile]); @@ -296,8 +296,8 @@ static void OrdersWndProc(Window *w, WindowEvent *e) case OT_GOTO_DEPOT: /* goto depot order */ xy = _depots[ord >> 8].xy; break; - case OT_GOTO_CHECKPOINT: /* goto checkpoint order */ - xy = _checkpoints[ord >> 8].xy; + case OT_GOTO_WAYPOINT: /* goto waypoint order */ + xy = _waypoints[ord >> 8].xy; } if (xy) -- cgit v1.2.3-54-g00ecf