Conditional order: Replace "next station" with manually set station

This commit is contained in:
Jonathan G Rennison
2023-08-27 11:16:59 +01:00
parent a1eefaecd5
commit 02aecca5ae
15 changed files with 219 additions and 127 deletions

View File

@@ -35,7 +35,7 @@ inline void UnregisterOrderDestination(const Order *order, VehicleType type, Own
template <typename F> void RemoveVehicleOrdersIf(Vehicle * const v, F order_predicate) {
/* Clear the order from the order-list */
int id = -1;
for(Order *order = v->GetFirstOrder(); order != nullptr; order = order->next) {
for (Order *order = v->GetFirstOrder(); order != nullptr; order = order->next) {
id++;
restart: