src/waypoint.cpp
changeset 8836 f6f1ea3d7e93
parent 8787 41d9d5adbe87
child 8847 426dd2d582e7
equal deleted inserted replaced
8835:8fa962d90b63 8836:f6f1ea3d7e93
   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