From 38c2574b3c894683239619bd937b7e2f66eb0f65 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Wed, 20 Dec 2006 17:03:14 +0000 Subject: [PATCH] (svn r7515) -Codechange [newgrf]: Ignore ascii code 0x0A in text. Newline is 0x0D. --- newgrf_text.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/newgrf_text.c b/newgrf_text.c index bcb462878e..e21a66bd72 100644 --- a/newgrf_text.c +++ b/newgrf_text.c @@ -179,7 +179,8 @@ char *TranslateTTDPatchCodes(const char *str) d += Utf8Encode(d, SCC_SETX); *d++ = *str++; break; - case 0x0D: *d++ = 10; break; + case 0x0A: break; + case 0x0D: *d++ = 0x0A; break; case 0x0E: d += Utf8Encode(d, SCC_TINYFONT); break; case 0x0F: d += Utf8Encode(d, SCC_BIGFONT); break; case 0x1F: