(svn r25454) -Remove/Fix/Cleanup: SETX(Y) does not work at all with other than default fonts, so get rid of it

This commit is contained in:
rubidium
2013-06-24 18:39:19 +00:00
parent ea781c7992
commit 2771de7f34
11 changed files with 46 additions and 191 deletions

View File

@@ -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: