summaryrefslogtreecommitdiff
path: root/src
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
commit94f421798447a1362ea861308453ae2d30cab839 (patch)
treeb23f648d5e8c1e58e8e46d7211b5cde40f9cfd35 /src
parent5049ff8e8ea754749e6d06c3e05e59e18e356e7a (diff)
downloadopenttd-94f421798447a1362ea861308453ae2d30cab839.tar.xz
(svn r12069) -Feature[newGRF]: Specify the purchase, rail and road description of a bridge.
Diffstat (limited to 'src')
-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;