1
0
Fork 0

(svn r11712) -Fix (r9315): Add more house string id ranges to MapGRFStringID so NewGRFs use the proper string ids.

release/0.6
maedhros 2007-12-27 20:49:44 +00:00
parent e67ed0a808
commit e2efaaff87
1 changed files with 5 additions and 5 deletions

View File

@ -272,12 +272,12 @@ StringID MapGRFStringID(uint32 grfid, StringID str)
TEXID_TO_STRINGID(0x006E, 0x008D, STR_QUANTITY_NOTHING); TEXID_TO_STRINGID(0x006E, 0x008D, STR_QUANTITY_NOTHING);
TEXID_TO_STRINGID(0x008E, 0x00AD, STR_ABBREV_NOTHING); TEXID_TO_STRINGID(0x008E, 0x00AD, STR_ABBREV_NOTHING);
/* Map building names according to our lang file changes /* Map building names according to our lang file changes. There are several
* 0x200F = Tall Office Block, first house name in the original data, the one that TTDPatch stil uses * ranges of house ids, all of which need to be remapped to allow newgrfs
* 0x201F = Old houses is the last house name. * to use original house names. */
* OpenTTD does not have exactly the same order aymore, so, the code below allows
* to compensate for the difference */
TEXID_TO_STRINGID(0x200F, 0x201F, STR_200F_TALL_OFFICE_BLOCK); TEXID_TO_STRINGID(0x200F, 0x201F, STR_200F_TALL_OFFICE_BLOCK);
TEXID_TO_STRINGID(0x2036, 0x2041, STR_2036_COTTAGES);
TEXID_TO_STRINGID(0x2059, 0x205C, STR_2059_IGLOO);
/* Same thing for industries, since the introduction of 4 new strings above STR_482A_PRODUCTION_LAST_MONTH */ /* Same thing for industries, since the introduction of 4 new strings above STR_482A_PRODUCTION_LAST_MONTH */
TEXID_TO_STRINGID(0x482A, 0x483B, STR_482A_PRODUCTION_LAST_MONTH); TEXID_TO_STRINGID(0x482A, 0x483B, STR_482A_PRODUCTION_LAST_MONTH);