From 9119ebe2cefdd58ca4a13774ddf685e1af7ba21a Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 3 Aug 2014 11:59:07 +0000 Subject: (svn r26713) -Fix (r23027): [NewGRF] Parameters to SCC_NEWGRF_PUSH_WORD and SCC_NEWGRF_UNPRINT were not skipped during drawing. --- src/newgrf_text.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp index 549353122..daf9db443 100644 --- a/src/newgrf_text.cpp +++ b/src/newgrf_text.cpp @@ -1060,6 +1060,16 @@ uint RemapNewGRFStringControlCode(uint scc, char *buf_start, char **buff, const *argv = MapGRFStringID(_newgrf_textrefstack.grffile->grfid, _newgrf_textrefstack.PopUnsignedWord()); break; } + } else { + /* Consume additional parameter characters */ + switch (scc) { + default: break; + + case SCC_NEWGRF_PUSH_WORD: + case SCC_NEWGRF_UNPRINT: + Utf8Consume(str); + break; + } } switch (scc) { -- cgit v1.2.3-54-g00ecf