forked from mirror/OpenTTD
(svn r26713) -Fix (r23027): [NewGRF] Parameters to SCC_NEWGRF_PUSH_WORD and SCC_NEWGRF_UNPRINT were not skipped during drawing.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user