Mercurial > hg > openttd
changeset 5344:c1210485647e draft
(svn r7515) -Codechange [newgrf]: Ignore ascii code 0x0A in text. Newline is 0x0D.
author | Darkvater <Darkvater@openttd.org> |
---|---|
date | Wed, 20 Dec 2006 17:03:14 +0000 |
parents | c9c50e88102b |
children | dd432d4440ae |
files | newgrf_text.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/newgrf_text.c +++ b/newgrf_text.c @@ -179,7 +179,8 @@ 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: