mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Departures: Fix wrong tick in scheduled dispatch evaluation
This commit is contained in:
parent
3003f8796e
commit
371d7c10d7
@ -793,7 +793,7 @@ DepartureList* MakeDepartureList(StationID station, const std::vector<const Vehi
|
||||
for (int i = least_order->v->GetNumOrders(); i > 0; --i) {
|
||||
/* If the order is a conditional branch, handle it. */
|
||||
if (order->IsType(OT_CONDITIONAL)) {
|
||||
switch(GetDepartureConditionalOrderMode(order, least_order->v, least_order->expected_tick)) {
|
||||
switch (GetDepartureConditionalOrderMode(order, least_order->v, state_ticks_base + least_order->expected_tick)) {
|
||||
case 0: {
|
||||
/* Give up */
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user