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

Method IsStoppedInDepot

src/script/api/script_vehicle.cpp:222–226  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

220}
221
222/* static */ bool ScriptVehicle::IsStoppedInDepot(VehicleID vehicle_id)
223{
224 if (!IsValidVehicle(vehicle_id)) return false;
225 return ::Vehicle::Get(vehicle_id)->IsStoppedInDepot();
226}
227
228/* static */ bool ScriptVehicle::StartStopVehicle(VehicleID vehicle_id)
229{

Callers 1

GetStateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected