|
@@ -192,17 +192,13 @@
|
|
|
|
|
|
return AIObject::DoCommand(0, vehicle_id, 0, CMD_START_STOP_VEHICLE);
|
|
|
}
|
|
|
|
|
|
/* static */ bool AIVehicle::SkipToVehicleOrder(VehicleID vehicle_id, AIOrder::OrderPosition order_position)
|
|
|
{
|
|
|
order_position = AIOrder::ResolveOrderPosition(vehicle_id, order_position);
|
|
|
|
|
|
EnforcePrecondition(false, AIOrder::IsValidVehicleOrder(vehicle_id, order_position));
|
|
|
|
|
|
return AIObject::DoCommand(0, vehicle_id, order_position, CMD_SKIP_TO_ORDER);
|
|
|
return AIOrder::SkipToOrder(vehicle_id, order_position);
|
|
|
}
|
|
|
|
|
|
/* static */ bool AIVehicle::ReverseVehicle(VehicleID vehicle_id)
|
|
|
{
|
|
|
EnforcePrecondition(false, IsValidVehicle(vehicle_id));
|
|
|
EnforcePrecondition(false, ::Vehicle::Get(vehicle_id)->type == VEH_ROAD || ::Vehicle::Get(vehicle_id)->type == VEH_TRAIN);
|