summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-05-21 11:26:37 +0000
committerfrosch <frosch@openttd.org>2011-05-21 11:26:37 +0000
commit474b4799e8792d4b4bd00aee512327c682796d66 (patch)
tree9ea018b4860e4dcbd1e3f37421794ac56011247b /src/vehicle.cpp
parent2447efdefd6a52c7be8bbe3c5493dd36b0697804 (diff)
downloadopenttd-474b4799e8792d4b4bd00aee512327c682796d66.tar.xz
(svn r22482) -Codechange: Add some contants for the number of ticks between certain cyclical tasks.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index f2d391f23..41aebff10 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -801,7 +801,7 @@ void CallVehicleTicks()
{
_vehicles_to_autoreplace.Clear();
- _age_cargo_skip_counter = (_age_cargo_skip_counter == 0) ? 184 : (_age_cargo_skip_counter - 1);
+ _age_cargo_skip_counter = (_age_cargo_skip_counter == 0) ? CARGO_AGING_TICKS - 1 : (_age_cargo_skip_counter - 1);
RunVehicleDayProc();