static */
| 549 | } |
| 550 | |
| 551 | /* static */ bool ScriptOrder::RemoveOrder(VehicleID vehicle_id, OrderPosition order_position) |
| 552 | { |
| 553 | order_position = ScriptOrder::ResolveOrderPosition(vehicle_id, order_position); |
| 554 | |
| 555 | EnforceCompanyModeValid(false); |
| 556 | EnforcePrecondition(false, IsValidVehicleOrder(vehicle_id, order_position)); |
| 557 | |
| 558 | int order_pos = ScriptOrderPositionToRealOrderPosition(vehicle_id, order_position); |
| 559 | return ScriptObject::Command<CMD_DELETE_ORDER>::Do(0, vehicle_id, order_pos); |
| 560 | } |
| 561 | |
| 562 | /* static */ bool ScriptOrder::SkipToOrder(VehicleID vehicle_id, OrderPosition next_order) |
| 563 | { |
nothing calls this directly
no test coverage detected