From bd6d490987fe6767b8bb07ef9bf7753049c0c564 Mon Sep 17 00:00:00 2001 From: yexo Date: Sat, 29 Oct 2011 21:00:11 +0000 Subject: (svn r23064) -Fix (r23062): incrementing hexadecimal numbers is hard... --- src/newgrf_text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp index e31e68ff0..5a0412854 100644 --- a/src/newgrf_text.cpp +++ b/src/newgrf_text.cpp @@ -584,7 +584,7 @@ char *TranslateTTDPatchCodes(uint32 grfid, uint8 language_id, bool allow_newline case 0x17: case 0x18: case 0x19: - case 0x20: d += Utf8Encode(d, SCC_NEWGRF_PRINT_DWORD_DATE_LONG + code - 0x16); break; + case 0x1A: d += Utf8Encode(d, SCC_NEWGRF_PRINT_DWORD_DATE_LONG + code - 0x16); break; default: grfmsg(1, "missing handler for extended format code"); -- cgit v1.2.3-70-g09d2