(svn r13443) -Feature[newGRF]: Add var 0x69 for industries, long format construction date.
authorbelugas
Tue, 10 Jun 2008 16:10:54 +0000
changeset 9484 2e8749c6b560
parent 9483 cdefc44b5f60
child 9485 23ccef6cec89
(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
src/newgrf_industries.cpp
--- a/src/newgrf_industries.cpp	Tue Jun 10 00:42:19 2008 +0000
+++ b/src/newgrf_industries.cpp	Tue Jun 10 16:10:54 2008 +0000
@@ -296,6 +296,8 @@
 		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);