(svn r27766) -Fix: Obiwan opposed translations for text id D3FF and DCFF in Action 13.

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
frosch 7 years ago
parent a18ead5c67
commit 1a9e1c5e91

@ -7244,7 +7244,7 @@ static void TranslateGRFStrings(ByteReader *buf)
byte num_strings = buf->ReadByte();
uint16 first_id = buf->ReadWord();
if (!((first_id >= 0xD000 && first_id + num_strings <= 0xD3FF) || (first_id >= 0xDC00 && first_id + num_strings <= 0xDCFF))) {
if (!((first_id >= 0xD000 && first_id + num_strings <= 0xD400) || (first_id >= 0xDC00 && first_id + num_strings <= 0xDD00))) {
grfmsg(7, "TranslateGRFStrings: Attempting to set out-of-range string IDs in action 13 (first: 0x%4X, number: 0x%2X)", first_id, num_strings);
return;
}

Loading…
Cancel
Save