1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-30 09:59:10 +00:00

(svn r587) -newgrf: Rename all /Checkpoint/i tokens to 'Waypoint's. The name actually makes some sense and is also compatible with TTDPatch (pasky).

This commit is contained in:
darkvater
2004-11-14 13:07:07 +00:00
parent 8946e92468
commit 397cc50f61
38 changed files with 492 additions and 492 deletions

View File

@@ -1582,8 +1582,8 @@ static bool ProcessTrainOrder(Vehicle *v)
v->cur_order_index++;
}
// check if we've reached the checkpoint?
if ((v->next_order & OT_MASK) == OT_GOTO_CHECKPOINT && v->tile == v->dest_tile) {
// check if we've reached the waypoint?
if ((v->next_order & OT_MASK) == OT_GOTO_WAYPOINT && v->tile == v->dest_tile) {
v->cur_order_index++;
}
@@ -1623,8 +1623,8 @@ static bool ProcessTrainOrder(Vehicle *v)
} else if ((order & OT_MASK) == OT_GOTO_DEPOT) {
v->dest_tile = _depots[order >> 8].xy;
result = CheckReverseTrain(v);
} else if ((order & OT_MASK) == OT_GOTO_CHECKPOINT) {
v->dest_tile = _checkpoints[order >> 8].xy;
} else if ((order & OT_MASK) == OT_GOTO_WAYPOINT) {
v->dest_tile = _waypoints[order >> 8].xy;
result = CheckReverseTrain(v);
}