summaryrefslogtreecommitdiff
path: root/src/date_type.h
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/date_type.h
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/date_type.h')
-rw-r--r--src/date_type.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/date_type.h b/src/date_type.h
index 4930979cd..bff1d6577 100644
--- a/src/date_type.h
+++ b/src/date_type.h
@@ -31,6 +31,13 @@ static const int DAY_TICKS = 74; ///< ticks per day
static const int DAYS_IN_YEAR = 365; ///< days per year
static const int DAYS_IN_LEAP_YEAR = 366; ///< sometimes, you need one day more...
+static const int STATION_RATING_TICKS = 185; ///< cycle duration for updating station rating
+static const int STATION_ACCEPTANCE_TICKS = 250; ///< cycle duration for updating station acceptance
+static const int CARGO_AGING_TICKS = 185; ///< cycle duration for aging cargo
+static const int INDUSTRY_PRODUCE_TICKS = 256; ///< cycle duration for industry production
+static const int TOWN_GROWTH_TICKS = 70; ///< cycle duration for towns trying to grow. (this originates from the size of the town array in TTD
+
+
/*
* ORIGINAL_BASE_YEAR, ORIGINAL_MAX_YEAR and DAYS_TILL_ORIGINAL_BASE_YEAR are
* primarily used for loading newgrf and savegame data and returning some