summaryrefslogtreecommitdiff
path: root/src/newgrf_text.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-06-24 18:39:19 +0000
committerrubidium <rubidium@openttd.org>2013-06-24 18:39:19 +0000
commit7c0f34130c5ee2292ca62ee3b1c10edeb2583d45 (patch)
treebe32879bf1836b51d90305a1d09a7efb305da800 /src/newgrf_text.cpp
parent8197a3ea2a0dd597f56d8d3cce3d13d9786c26d4 (diff)
downloadopenttd-7c0f34130c5ee2292ca62ee3b1c10edeb2583d45.tar.xz
(svn r25454) -Remove/Fix/Cleanup: SETX(Y) does not work at all with other than default fonts, so get rid of it
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: