MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / DoCmdStartStopVehicle

Function DoCmdStartStopVehicle

src/autoreplace_cmd.cpp:392–395  ·  view source on GitHub ↗

* Issue a start/stop command * @param v a vehicle * @param evaluate_callback shall the start/stop callback be evaluated? * @return success or error */

Source from the content-addressed store, hash-verified

390 * @return success or error
391 */
392static 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

Callers 2

CopyHeadSpecificThingsFunction · 0.85
CmdAutoreplaceVehicleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected