equal
deleted
inserted
replaced
242 * while taking in consideration the "drift" between TTDPatch string system and OpenTTD's one |
242 * while taking in consideration the "drift" between TTDPatch string system and OpenTTD's one |
243 * @param grfid Id of the grf file |
243 * @param grfid Id of the grf file |
244 * @param str StringID that we want to have the equivalent in OoenTTD |
244 * @param str StringID that we want to have the equivalent in OoenTTD |
245 * @return the properly adjusted StringID |
245 * @return the properly adjusted StringID |
246 */ |
246 */ |
247 static StringID MapGRFStringID(uint32 grfid, StringID str) |
247 StringID MapGRFStringID(uint32 grfid, StringID str) |
248 { |
248 { |
249 /* 0xD0 and 0xDC stand for all the TextIDs in the range |
249 /* 0xD0 and 0xDC stand for all the TextIDs in the range |
250 * of 0xD000 (misc graphics texts) and 0xDC00 (misc persistent texts). |
250 * of 0xD000 (misc graphics texts) and 0xDC00 (misc persistent texts). |
251 * These strings are unique to each grf file, and thus require to be used with the |
251 * These strings are unique to each grf file, and thus require to be used with the |
252 * grfid in which they are declared */ |
252 * grfid in which they are declared */ |