summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-02-06 03:01:29 +0000
committerbelugas <belugas@openttd.org>2008-02-06 03:01:29 +0000
commit831e678120e55e5295216a0a2e31e04b0708deb7 (patch)
treeb23f648d5e8c1e58e8e46d7211b5cde40f9cfd35
parente3ca12a411639d3583815445328297312cc9f4ba (diff)
downloadopenttd-831e678120e55e5295216a0a2e31e04b0708deb7.tar.xz
(svn r12069) -Feature[newGRF]: Specify the purchase, rail and road description of a bridge.
-rw-r--r--src/newgrf.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index f09f1e27b..dae0185ab 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -1245,6 +1245,21 @@ static bool BridgeChangeInfo(uint brid, int numinfo, int prop, byte **bufp, int
bridge->avail_year = Clamp(grf_load_dword(&buf), MIN_YEAR, MAX_YEAR);
break;
+ case 0x10: { // purchase string
+ StringID newone = GetGRFStringID(_cur_grffile->grfid, grf_load_word(&buf));
+ if (newone != STR_UNDEFINED) bridge->material = newone;
+ } break;
+
+ case 0x11: { // description of bridge with rails
+ StringID newone = GetGRFStringID(_cur_grffile->grfid, grf_load_word(&buf));
+ if (newone != STR_UNDEFINED) bridge->name_rail = newone;
+ } break;
+
+ case 0x12: { // description of bridge with roads
+ StringID newone = GetGRFStringID(_cur_grffile->grfid, grf_load_word(&buf));
+ if (newone != STR_UNDEFINED) bridge->name_road = newone;
+ } break;
+
default:
ret = true;
break;