summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-12-31 02:39:50 +0000
committerbelugas <belugas@openttd.org>2007-12-31 02:39:50 +0000
commit31e2ed8b4cc8b16346d8bdfe5acfca068cc09e4d (patch)
treebe713c151c0b7ee03b55297a6202ec82ab1d0e0d /src
parent1a70eed58c1d42900b0a972403d993c435be8a65 (diff)
downloadopenttd-31e2ed8b4cc8b16346d8bdfe5acfca068cc09e4d.tar.xz
(svn r11725) -Codechange: less a magical number
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_industries.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp
index 5f5d7693d..45e481988 100644
--- a/src/newgrf_industries.cpp
+++ b/src/newgrf_industries.cpp
@@ -329,7 +329,7 @@ uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte par
case 0xA6: return industry->type;
case 0xA7: return industry->founder;
case 0xA8: return industry->random_color;
- case 0xA9: return Clamp(0, industry->last_prod_year - 1920, 255);
+ case 0xA9: return Clamp(0, industry->last_prod_year - ORIGINAL_BASE_YEAR, 255);
case 0xAA: return industry->counter;
case 0xAB: return GB(industry->counter, 8, 8);
case 0xAC: return industry->was_cargo_delivered;