diff options
author | yexo <yexo@openttd.org> | 2011-01-21 23:10:02 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2011-01-21 23:10:02 +0000 |
commit | 0cdb1c78cdbfce4d426441c21ef7066f1cfecf6f (patch) | |
tree | 8eb1c3e45537d04c86de014a61b861b9a928fb7b /src/newgrf_text.cpp | |
parent | c9bd9b0c23b3b4257f384a8980341a8dd325eab3 (diff) | |
download | openttd-0cdb1c78cdbfce4d426441c21ef7066f1cfecf6f.tar.xz |
(svn r21885) -Fix [FS#4422]: NewGRF string codes 0x80 and 0x81 were broken since the typechecking of string parameters
Diffstat (limited to 'src/newgrf_text.cpp')
-rw-r--r-- | src/newgrf_text.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp index ff77c441c..1aa1af455 100644 --- a/src/newgrf_text.cpp +++ b/src/newgrf_text.cpp @@ -447,7 +447,7 @@ char *TranslateTTDPatchCodes(uint32 grfid, uint8 language_id, const char *str, i StringID string; string = ((uint8)*str++); string |= ((uint8)*str++) << 8; - d += Utf8Encode(d, SCC_STRING_ID); + d += Utf8Encode(d, SCC_NEWGRF_STRINL); d += Utf8Encode(d, MapGRFStringID(grfid, string)); break; } @@ -1059,7 +1059,7 @@ uint RemapNewGRFStringControlCode(uint scc, char *buf_start, char **buff, const return SCC_CURRENCY; case SCC_NEWGRF_PRINT_STRING_ID: - return SCC_STRING1; + return SCC_NEWGRF_PRINT_STRING_ID; case SCC_NEWGRF_PRINT_DATE: return SCC_DATE_LONG; |