summaryrefslogtreecommitdiff
path: root/src/newgrf_text.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-04-06 23:45:10 +0000
committeryexo <yexo@openttd.org>2010-04-06 23:45:10 +0000
commit705955b1e6b8d37866ead88e11aa996d10202665 (patch)
tree4349a888b7c1578aa42c5d18b1b4697dc4d261c4 /src/newgrf_text.cpp
parentfaf5e19aaedfa5ec70ddde2ba7be60909899616a (diff)
downloadopenttd-705955b1e6b8d37866ead88e11aa996d10202665.tar.xz
(svn r19570) -Add: [NewGRF] support for extended text code 0x9A 11, print qword
Diffstat (limited to 'src/newgrf_text.cpp')
-rw-r--r--src/newgrf_text.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp
index a564e1917..8042fd042 100644
--- a/src/newgrf_text.cpp
+++ b/src/newgrf_text.cpp
@@ -291,6 +291,9 @@ char *TranslateTTDPatchCodes(uint32 grfid, const char *str)
case 8:
d += Utf8Encode(d, SCC_NEWGRF_PRINT_HEX_DWORD);
break;
+ case 0x0B:
+ d += Utf8Encode(d, SCC_NEWGRF_PRINT_HEX_QWORD);
+ break;
default:
grfmsg(1, "missing handler for extended format code");
@@ -650,6 +653,7 @@ uint RemapNewGRFStringControlCode(uint scc, char *buf_start, char **buff, const
case SCC_NEWGRF_PRINT_HEX_BYTE: *argv = _newgrf_textrefstack->PopUnsignedByte(); break;
case SCC_NEWGRF_PRINT_HEX_DWORD: *argv = _newgrf_textrefstack->PopUnsignedDWord(); break;
+ case SCC_NEWGRF_PRINT_HEX_QWORD: *argv = _newgrf_textrefstack->PopSignedQWord(); break;
case SCC_NEWGRF_PRINT_HEX_WORD:
case SCC_NEWGRF_PRINT_WORD_SPEED:
@@ -682,6 +686,7 @@ uint RemapNewGRFStringControlCode(uint scc, char *buf_start, char **buff, const
case SCC_NEWGRF_PRINT_HEX_BYTE:
case SCC_NEWGRF_PRINT_HEX_WORD:
case SCC_NEWGRF_PRINT_HEX_DWORD:
+ case SCC_NEWGRF_PRINT_HEX_QWORD:
return SCC_HEX;
case SCC_NEWGRF_PRINT_DWORD_CURRENCY: