diff options
author | frosch <frosch@openttd.org> | 2011-05-21 11:26:37 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-05-21 11:26:37 +0000 |
commit | 474b4799e8792d4b4bd00aee512327c682796d66 (patch) | |
tree | 9ea018b4860e4dcbd1e3f37421794ac56011247b /src/town_cmd.cpp | |
parent | 2447efdefd6a52c7be8bbe3c5493dd36b0697804 (diff) | |
download | openttd-474b4799e8792d4b4bd00aee512327c682796d66.tar.xz |
(svn r22482) -Codechange: Add some contants for the number of ticks between certain cyclical tasks.
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index ddf86e1f7..e1c013a44 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -704,7 +704,7 @@ void OnTick_Town() Town *t; FOR_ALL_TOWNS(t) { /* Run town tick at regular intervals, but not all at once. */ - if ((_tick_counter + t->index) % TOWN_GROWTH_FREQUENCY == 0) { + if ((_tick_counter + t->index) % TOWN_GROWTH_TICKS == 0) { TownTickHandler(t); } } @@ -2737,7 +2737,7 @@ static void UpdateTownGrowRate(Town *t) if (_settings_game.economy.town_growth_rate == 0 && t->fund_buildings_months == 0) return; /** - * Towns are processed every TOWN_GROWTH_FREQUENCY ticks, and this is the + * Towns are processed every TOWN_GROWTH_TICKS ticks, and this is the * number of times towns are processed before a new building is built. */ static const uint16 _grow_count_values[2][6] = { |