mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
(svn r17585) -Fix [FS#3214]: also do the StringID conversion for StringIDs that are pushed on the (NewGRF string) stack
This commit is contained in:
parent
47bd3ee4ba
commit
a8c80a5afc
@ -626,8 +626,7 @@ uint RemapNewGRFStringControlCode(uint scc, char **buff, const char **str, int64
|
|||||||
case SCC_NEWGRF_UNPRINT: *buff -= Utf8Consume(str); break;
|
case SCC_NEWGRF_UNPRINT: *buff -= Utf8Consume(str); break;
|
||||||
|
|
||||||
case SCC_NEWGRF_PRINT_STRING_ID:
|
case SCC_NEWGRF_PRINT_STRING_ID:
|
||||||
*argv = _newgrf_textrefstack->PopUnsignedWord();
|
*argv = TTDPStringIDToOTTDStringIDMapping(_newgrf_textrefstack->PopUnsignedWord());
|
||||||
if (*argv == STR_NULL) *argv = STR_EMPTY;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user