summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: