Mercurial > hg > openttd
changeset 8494:02c12d226dde draft
(svn r12069) -Feature[newGRF]: Specify the purchase, rail and road description of a bridge.
author | belugas <belugas@openttd.org> |
---|---|
date | Wed, 06 Feb 2008 03:01:29 +0000 |
parents | 3f7e08d054c9 |
children | 486b50380194 |
files | src/newgrf.cpp |
diffstat | 1 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -1245,6 +1245,21 @@ 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;