diff options
author | rubidium <rubidium@openttd.org> | 2011-02-04 15:13:20 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-02-04 15:13:20 +0000 |
commit | 4c5ca174861c4324761b31de5a98a5c9a7d976df (patch) | |
tree | 83c8b371d885f2ee61a178e570bcec9474f0a225 /src/vehicle.cpp | |
parent | 71f4067d19b4d861b93bd5f6fe290d9d95eec4fd (diff) | |
download | openttd-4c5ca174861c4324761b31de5a98a5c9a7d976df.tar.xz |
(svn r21957) -Cleanup: gotodepot and timetabling settings are more or less useless; just don't use depot orders or timetabling if you don't want to use it
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 5 |
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(); |