summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2009-08-03 20:02:25 +0000
committerbelugas <belugas@openttd.org>2009-08-03 20:02:25 +0000
commita2b996106ea25c97ece3e724c10d9d1b9e1d5aa2 (patch)
tree5cc371e6bbe7677dccd271c6c169145d51722d73 /src/economy.cpp
parent37d01c7758d018bfd2d29b623f83bde080598233 (diff)
downloadopenttd-a2b996106ea25c97ece3e724c10d9d1b9e1d5aa2.tar.xz
(svn r17058) -Codechange: magic numbers removal.
Two values used intead of just one, as it gives more possibilities to those who dare...
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index a3c880068..39c030ebd 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -569,7 +569,7 @@ static void CompaniesGenStatistics()
c->old_economy[0] = c->cur_economy;
memset(&c->cur_economy, 0, sizeof(c->cur_economy));
- if (c->num_valid_stat_ent != 24) c->num_valid_stat_ent++;
+ if (c->num_valid_stat_ent != MAX_HISTORY_MONTHS) c->num_valid_stat_ent++;
UpdateCompanyRatingAndValue(c, true);
if (c->block_preview != 0) c->block_preview--;