summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/newgrf_text.cpp10
1 files changed, 10 insertions, 0 deletions
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) {