From d2b6176cdf9f37bea676972239471d950df4d531 Mon Sep 17 00:00:00 2001 From: PeterN Date: Sat, 20 Apr 2019 02:21:25 +0100 Subject: [PATCH] Add: NewGRF string codes to access PUSH/POP_COLOUR. (#7527) --- src/newgrf_text.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp index 4cba3c368a..5387d67679 100644 --- a/src/newgrf_text.cpp +++ b/src/newgrf_text.cpp @@ -528,6 +528,9 @@ char *TranslateTTDPatchCodes(uint32 grfid, uint8 language_id, bool allow_newline d += Utf8Encode(d, SCC_NEWGRF_PRINT_DWORD_DATE_LONG + code - 0x16); break; + case 0x1F: d += Utf8Encode(d, SCC_PUSH_COLOUR); break; + case 0x20: d += Utf8Encode(d, SCC_POP_COLOUR); break; + default: grfmsg(1, "missing handler for extended format code"); break;