equal
deleted
inserted
replaced
462 const Order *ord = GetVehicleOrder(v, sel); |
462 const Order *ord = GetVehicleOrder(v, sel); |
463 TileIndex xy; |
463 TileIndex xy; |
464 |
464 |
465 switch (ord->type) { |
465 switch (ord->type) { |
466 case OT_GOTO_STATION: xy = GetStation(ord->dest)->xy ; break; |
466 case OT_GOTO_STATION: xy = GetStation(ord->dest)->xy ; break; |
467 case OT_GOTO_DEPOT: xy = GetDepot(ord->dest)->xy; break; |
467 case OT_GOTO_DEPOT: xy = (v->type == VEH_Aircraft) ? GetStation(ord->dest)->xy : GetDepot(ord->dest)->xy; break; |
468 case OT_GOTO_WAYPOINT: xy = GetWaypoint(ord->dest)->xy; break; |
468 case OT_GOTO_WAYPOINT: xy = GetWaypoint(ord->dest)->xy; break; |
469 default: xy = 0; break; |
469 default: xy = 0; break; |
470 } |
470 } |
471 |
471 |
472 if (xy != 0) ScrollMainWindowToTile(xy); |
472 if (xy != 0) ScrollMainWindowToTile(xy); |