diff options
author | fonsinchen <fonsinchen@openttd.org> | 2014-05-01 14:49:16 +0000 |
---|---|---|
committer | fonsinchen <fonsinchen@openttd.org> | 2014-05-01 14:49:16 +0000 |
commit | 3ee31a8f893dbbedf89de9b3ecf44a71a48c6666 (patch) | |
tree | ee4d710aacfd15a4d76f1f0da1c22879fdb09126 /src/economy.cpp | |
parent | c915d9fa55e8bb42b33c56b94c5a5e0ff446d7da (diff) | |
download | openttd-3ee31a8f893dbbedf89de9b3ecf44a71a48c6666.tar.xz |
(svn r26547) -Codechange: Collect order travel and wait times independent of timetables
Diffstat (limited to 'src/economy.cpp')
-rw-r--r-- | src/economy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index ea82ed84b..f3178f43b 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -1675,7 +1675,7 @@ static void LoadUnloadVehicle(Vehicle *front) /* We loaded less cargo than possible for all cargo types and it's not full * load and we're not supposed to wait any longer: stop loading. */ if (!anything_unloaded && full_load_amount == 0 && reservation_left == 0 && !(front->current_order.GetLoadType() & OLFB_FULL_LOAD) && - front->current_order_time >= (uint)max(front->current_order.GetWaitTime() - front->lateness_counter, 0)) { + front->current_order_time >= (uint)max(front->current_order.GetTimetabledWait() - front->lateness_counter, 0)) { SetBit(front->vehicle_flags, VF_STOP_LOADING); } } else { |