summaryrefslogtreecommitdiff
path: root/src/newgrf_industries.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-06-10 16:10:54 +0000
committerbelugas <belugas@openttd.org>2008-06-10 16:10:54 +0000
commitff419b7182b878c1ec74cd0963fd9348d88d172f (patch)
tree59b34e548138b8c3ecaee3bc06a20532fd9f53bb /src/newgrf_industries.cpp
parent03e2d30a3317d49b1f8bcd28499dc1f2eb500a05 (diff)
downloadopenttd-ff419b7182b878c1ec74cd0963fd9348d88d172f.tar.xz
(svn r13443) -Feature[newGRF]: Add var 0x69 for industries, long format construction date.
Same as var B0, but base year is now 0, instead of 1920
Diffstat (limited to 'src/newgrf_industries.cpp')
-rw-r--r--src/newgrf_industries.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp
index 942c504b7..49c3a0bf8 100644
--- a/src/newgrf_industries.cpp
+++ b/src/newgrf_industries.cpp
@@ -296,6 +296,8 @@ uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte par
case 0x67:
case 0x68: return GetCountAndDistanceOfClosestInstance(parameter, variable == 0x68 ? GB(GetRegister(0x101), 0, 8) : 0, industry);
+ case 0x69: return industry->construction_date; // Date when built - long format - (in days)
+
/* Get a variable from the persistent storage */
case 0x7C: return industry->psa.Get(parameter);