* Issue a start/stop command * @param v a vehicle * @param evaluate_callback shall the start/stop callback be evaluated? * @return success or error */
| 390 | * @return success or error |
| 391 | */ |
| 392 | static inline CommandCost DoCmdStartStopVehicle(const Vehicle *v, bool evaluate_callback) |
| 393 | { |
| 394 | return Command<CMD_START_STOP_VEHICLE>::Do({DoCommandFlag::Execute, DoCommandFlag::AutoReplace}, v->index, evaluate_callback); |
| 395 | } |
| 396 | |
| 397 | /** |
| 398 | * Issue a train vehicle move command |
no outgoing calls
no test coverage detected