summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-12-20 17:03:14 +0000
committerDarkvater <darkvater@openttd.org>2006-12-20 17:03:14 +0000
commit083ceabe1685b40d0b7c8eb9c23235b794c03e45 (patch)
tree116d769f48057593b0a82065bd37b53c3225a0f3
parent8bf9f5f7fd231dd82abd2fdd9d19731f9bfab0b9 (diff)
downloadopenttd-083ceabe1685b40d0b7c8eb9c23235b794c03e45.tar.xz
(svn r7515) -Codechange [newgrf]: Ignore ascii code 0x0A in text. Newline is 0x0D.
-rw-r--r--newgrf_text.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/newgrf_text.c b/newgrf_text.c
index bcb462878..e21a66bd7 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: