summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index ada4948ea..d04bc3eab 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -168,7 +168,7 @@ bool Vehicle::NeedsServicing() const
*/
bool Vehicle::NeedsAutomaticServicing() const
{
- if (_settings_game.order.gotodepot && this->HasDepotOrder()) return false;
+ if (this->HasDepotOrder()) return false;
if (this->current_order.IsType(OT_LOADING)) return false;
if (this->current_order.IsType(OT_GOTO_DEPOT) && this->current_order.GetDepotOrderType() != ODTFB_SERVICE) return false;
return NeedsServicing();
@@ -1912,8 +1912,7 @@ void Vehicle::HandleLoading(bool mode)
uint wait_time = max(this->current_order.wait_time - this->lateness_counter, 0);
/* Not the first call for this tick, or still loading */
- if (mode || !HasBit(this->vehicle_flags, VF_LOADING_FINISHED) ||
- (_settings_game.order.timetabling && this->current_order_time < wait_time)) return;
+ if (mode || !HasBit(this->vehicle_flags, VF_LOADING_FINISHED) || this->current_order_time < wait_time) return;
this->PlayLeaveStationSound();