mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-11 14:54:04 +01:00
(svn r14398) -Cleanup (r14395): unused function sneaked in
This commit is contained in:
parent
86f1a98ac8
commit
e4242c8735
@ -657,19 +657,6 @@ static inline Order *GetVehicleOrder(const Vehicle *v, int index)
|
|||||||
return order;
|
return order;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** Returns VehicleOrderID of selected order */
|
|
||||||
static inline VehicleOrderID GetVehicleOrderID(const Vehicle *v, OrderID order)
|
|
||||||
{
|
|
||||||
VehicleOrderID ret = 0;
|
|
||||||
|
|
||||||
for (const Order *o = v->orders; o != NULL; o = o->next, ret++) {
|
|
||||||
if (o->index == order) return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
return INVALID_VEH_ORDER_ID;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the last order of a vehicle, or NULL if it doesn't exists
|
* Returns the last order of a vehicle, or NULL if it doesn't exists
|
||||||
* @param v Vehicle to query
|
* @param v Vehicle to query
|
||||||
|
Loading…
Reference in New Issue
Block a user