equal
deleted
inserted
replaced
234 * have the old waypoint in their orders. */ |
234 * have the old waypoint in their orders. */ |
235 Vehicle *v; |
235 Vehicle *v; |
236 FOR_ALL_VEHICLES(v) { |
236 FOR_ALL_VEHICLES(v) { |
237 if (v->type == VEH_TRAIN && |
237 if (v->type == VEH_TRAIN && |
238 v->First() == v && |
238 v->First() == v && |
239 v->current_order.type == OT_GOTO_WAYPOINT && |
239 v->current_order.IsType(OT_GOTO_WAYPOINT) && |
240 v->dest_tile == wp->xy) { |
240 v->dest_tile == wp->xy) { |
241 v->dest_tile = tile; |
241 v->dest_tile = tile; |
242 } |
242 } |
243 } |
243 } |
244 |
244 |