summaryrefslogtreecommitdiff
path: root/src/newgrf_engine.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-06-04 00:17:48 +0000
committerbelugas <belugas@openttd.org>2008-06-04 00:17:48 +0000
commit2550f353e9159d6a63a0ab8cc777e519cfad5b08 (patch)
treef210bc22bc9df385671f3a4b6737b90d54df3352 /src/newgrf_engine.cpp
parentc7a9637834a96722be5a524c4c1e8932a45e3461 (diff)
downloadopenttd-2550f353e9159d6a63a0ab8cc777e519cfad5b08.tar.xz
(svn r13376) -Feature: Add access to current long year and date from Action 7/9/D and VarAction2 (23/24 or A3/A4)
Add access to (long format) building year, in Variational Action2 Variable 49 for Vehicles
Diffstat (limited to 'src/newgrf_engine.cpp')
-rw-r--r--src/newgrf_engine.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf_engine.cpp b/src/newgrf_engine.cpp
index e0355d3d4..1b9cc55ca 100644
--- a/src/newgrf_engine.cpp
+++ b/src/newgrf_engine.cpp
@@ -616,6 +616,7 @@ static uint32 VehicleGetVariable(const ResolverObject *object, byte variable, by
}
case 0x48: return GetEngine(v->engine_type)->flags; // Vehicle Type Info
+ case 0x49: return v->build_year;
/* Variables which use the parameter */
case 0x60: // Count consist's engine ID occurance