diff options
author | rubidium <rubidium@openttd.org> | 2008-01-15 13:19:49 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-01-15 13:19:49 +0000 |
commit | fcee6dad935ccd877cdbed05e5c4154dd04b580b (patch) | |
tree | 674e51d7f086d490a4dcb2fded3e60d9f94042d3 /src/table/town_land.h | |
parent | e0c61a892173d2e72ea8b2b20bc7007f33c6d96f (diff) | |
download | openttd-fcee6dad935ccd877cdbed05e5c4154dd04b580b.tar.xz |
(svn r11862) -Fix [FS#1559]: when two NewGRFs 'fight' to define the same cargo it could happen that the strings are defined by one cargo and the 'action2' by another and when one assumes that both come from the same NewGRF... So store the GRF ID with the strings. To be extra sure add the same protection mechanism to industries and towns too.
Diffstat (limited to 'src/table/town_land.h')
-rw-r--r-- | src/table/town_land.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/table/town_land.h b/src/table/town_land.h index 89d7d30a1..ea46f1157 100644 --- a/src/table/town_land.h +++ b/src/table/town_land.h @@ -1803,7 +1803,7 @@ assert_compile(lengthof(_town_draw_tile_data) == (NEW_HOUSE_OFFSET) * 4 * 4); * @see HouseSpec */ #define MS(mnd, mxd, p, rc, bn, rr, mg, ca1, ca2, ca3, bf, ba, cg1, cg2, cg3) \ - {mnd, mxd, p, rc, bn, rr, mg, {ca1, ca2, ca3}, {cg1, cg2, cg3}, bf, ba, true, \ + {mnd, mxd, p, rc, GRFMappedStringID(bn, 0), rr, mg, {ca1, ca2, ca3}, {cg1, cg2, cg3}, bf, ba, true, \ 0, NULL, 0, 0, {0, 0, 0, 0}, 16, NO_EXTRA_FLAG, HOUSE_NO_CLASS, 0, 2, 0, 0, 0, NULL} /** House specifications from original data */ static const HouseSpec _original_house_specs[] = { |