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/vehicle.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/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index cc781b48d..edfbee499 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -2137,7 +2137,7 @@ void Vehicle::HandleLoading(bool mode) { switch (this->current_order.GetType()) { case OT_LOADING: { - uint wait_time = max(this->current_order.GetWaitTime() - this->lateness_counter, 0); + uint wait_time = max(this->current_order.GetTimetabledWait() - this->lateness_counter, 0); /* Not the first call for this tick, or still loading */ if (mode || !HasBit(this->vehicle_flags, VF_LOADING_FINISHED) || this->current_order_time < wait_time) return; |