summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-06-10 00:42:19 +0000
committerbelugas <belugas@openttd.org>2008-06-10 00:42:19 +0000
commit54e7a3b196c4fe22b8618f4c823d7c93881d0c2a (patch)
tree2aa176c21624c2cec8b6ebb39a5d319d5b3b1f98 /src/newgrf.cpp
parentbf8afb4c38ae68ce903a8183b336476210b9a33e (diff)
downloadopenttd-54e7a3b196c4fe22b8618f4c823d7c93881d0c2a.tar.xz
(svn r13437) -Feature[newGRF]: Add long format introduction and maximum construction year for house.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 5fe787877..5a7508b99 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -1538,6 +1538,14 @@ static bool TownHouseChangeInfo(uint hid, int numinfo, int prop, byte **bufp, in
ret = true;
} break;
+ case 0x21: // long introduction year
+ housespec->min_year = grf_load_word(&buf);
+ break;
+
+ case 0x22: // long maximum year
+ housespec->max_year = grf_load_word(&buf);
+ break;
+
default:
ret = true;
break;