static */
| 353 | } |
| 354 | |
| 355 | /* static */ SQInteger ScriptOrder::GetOrderCompareValue(VehicleID vehicle_id, OrderPosition order_position) |
| 356 | { |
| 357 | if (!IsValidVehicleOrder(vehicle_id, order_position)) return -1; |
| 358 | if (order_position == ORDER_CURRENT || !IsConditionalOrder(vehicle_id, order_position)) return -1; |
| 359 | |
| 360 | const Order *order = ::ResolveOrder(vehicle_id, order_position); |
| 361 | SQInteger value = order->GetConditionValue(); |
| 362 | if (order->GetConditionVariable() == OrderConditionVariable::MaxSpeed) value = value * 16 / 10; |
| 363 | return value; |
| 364 | } |
| 365 | |
| 366 | /* static */ ScriptOrder::StopLocation ScriptOrder::GetStopLocation(VehicleID vehicle_id, OrderPosition order_position) |
| 367 | { |
nothing calls this directly
no test coverage detected