summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-08-06 12:44:10 +0000
committersmatz <smatz@openttd.org>2009-08-06 12:44:10 +0000
commitadcc5338f3bb8e10e0af57009b3feeb48e798771 (patch)
tree71e5bf5c6220fc9004b34d6e5aca4b873baa097f /src/roadveh_cmd.cpp
parent9c25f1bdb7c186207c3c07542be976bc40a91e40 (diff)
downloadopenttd-adcc5338f3bb8e10e0af57009b3feeb48e798771.tar.xz
(svn r17085) -Codechange: unify the place where vehicle's cargo ages
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index 958ead338..782e10100 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -1826,16 +1826,8 @@ static bool RoadVehController(RoadVehicle *v)
return true;
}
-static void AgeRoadVehCargo(RoadVehicle *v)
-{
- if (_age_cargo_skip_counter != 0) return;
- v->cargo.AgeCargo();
-}
-
bool RoadVehicle::Tick()
{
- AgeRoadVehCargo(this);
-
if (this->IsRoadVehFront()) {
if (!(this->vehstatus & VS_STOPPED)) this->running_ticks++;
return RoadVehController(this);