mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r14398) -Cleanup (r14395): unused function sneaked in
This commit is contained in:
parent
48ece47bd9
commit
75d63af2ae
@ -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