src/newgrf.cpp
changeset 7615 8ffd309681c2
parent 7605 9b6226ed3384
child 7620 e6b07f259eff
equal deleted inserted replaced
7614:edf90d673e04 7615:8ffd309681c2
   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 */