summaryrefslogtreecommitdiff
path: root/src/newgrf_text.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newgrf_text.cpp')
-rw-r--r--src/newgrf_text.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp
index 4b2f75f42..9cb1c1898 100644
--- a/src/newgrf_text.cpp
+++ b/src/newgrf_text.cpp
@@ -432,8 +432,8 @@ char *TranslateTTDPatchCodes(uint32 grfid, uint8 language_id, bool allow_newline
switch (c) {
case 0x01:
if (str[0] == '\0') goto string_end;
- d += Utf8Encode(d, SCC_SETX);
- *d++ = *str++;
+ d += Utf8Encode(d, ' ');
+ str++;
break;
case 0x0A: break;
case 0x0D:
@@ -447,9 +447,8 @@ char *TranslateTTDPatchCodes(uint32 grfid, uint8 language_id, bool allow_newline
case 0x0F: d += Utf8Encode(d, SCC_BIGFONT); break;
case 0x1F:
if (str[0] == '\0' || str[1] == '\0') goto string_end;
- d += Utf8Encode(d, SCC_SETXY);
- *d++ = *str++;
- *d++ = *str++;
+ d += Utf8Encode(d, ' ');
+ str += 2;
break;
case 0x7B:
case 0x7C: