1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 10:29:10 +00:00

(svn r7515) -Codechange [newgrf]: Ignore ascii code 0x0A in text. Newline is 0x0D.

This commit is contained in:
Darkvater
2006-12-20 17:03:14 +00:00
parent 8bf9f5f7fd
commit 083ceabe16

View File

@@ -179,7 +179,8 @@ char *TranslateTTDPatchCodes(const char *str)
d += Utf8Encode(d, SCC_SETX); d += Utf8Encode(d, SCC_SETX);
*d++ = *str++; *d++ = *str++;
break; break;
case 0x0D: *d++ = 10; break; case 0x0A: break;
case 0x0D: *d++ = 0x0A; break;
case 0x0E: d += Utf8Encode(d, SCC_TINYFONT); break; case 0x0E: d += Utf8Encode(d, SCC_TINYFONT); break;
case 0x0F: d += Utf8Encode(d, SCC_BIGFONT); break; case 0x0F: d += Utf8Encode(d, SCC_BIGFONT); break;
case 0x1F: case 0x1F: