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

Method IsRefitOrder

src/script/api/script_order.cpp:158–164  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

156}
157
158/* static */ bool ScriptOrder::IsRefitOrder(VehicleID vehicle_id, OrderPosition order_position)
159{
160 if (!IsValidVehicleOrder(vehicle_id, order_position)) return false;
161
162 const Order *order = ::ResolveOrder(vehicle_id, order_position);
163 return order != nullptr && order->IsRefit();
164}
165
166/* static */ bool ScriptOrder::IsCurrentOrderPartOfOrderList(VehicleID vehicle_id)
167{

Callers

nothing calls this directly

Calls 2

ResolveOrderFunction · 0.85
IsRefitMethod · 0.80

Tested by

no test coverage detected