summaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-09-14 14:31:37 +0000
committerrubidium <rubidium@openttd.org>2008-09-14 14:31:37 +0000
commit6ce4fe40f7b17dcd7a76f0b2a88038726934cd71 (patch)
tree6bb9bd6e268d2b6609498af869e15e7a681ceff2 /src/table
parent811193e46889850d4fef3454ed7301e017c6e4a6 (diff)
downloadopenttd-6ce4fe40f7b17dcd7a76f0b2a88038726934cd71.tar.xz
(svn r14321) -Add: support for newgrfs printing bytes/words/dwords as hexadecimals.
Diffstat (limited to 'src/table')
-rw-r--r--src/table/control_codes.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/table/control_codes.h b/src/table/control_codes.h
index 69cabda67..03a383556 100644
--- a/src/table/control_codes.h
+++ b/src/table/control_codes.h
@@ -64,6 +64,7 @@ enum StringControlCode {
SCC_STRING,
SCC_COMMA,
SCC_NUM,
+ SCC_HEX,
SCC_STRING_ID,
SCC_RAW_STRING_POINTER,
@@ -101,7 +102,7 @@ enum StringControlCode {
SCC_NEWGRF_FIRST,
SCC_NEWGRF_PRINT_DWORD = SCC_NEWGRF_FIRST, ///< Read 4 bytes from the stack
SCC_NEWGRF_PRINT_SIGNED_WORD, ///< Read 2 bytes from the stack as signed value
- SCC_NEWGRF_PRINT_SIGNED_BYTE, ///< Read 1 bytes from the stack as signed value
+ SCC_NEWGRF_PRINT_SIGNED_BYTE, ///< Read 1 byte from the stack as signed value
SCC_NEWGRF_PRINT_UNSIGNED_WORD, ///< Read 2 bytes from the stack as unsigned value
SCC_NEWGRF_PRINT_DWORD_CURRENCY, ///< Read 4 bytes from the stack as currency
SCC_NEWGRF_PRINT_STRING_ID, ///< Read 2 bytes from the stack as String ID
@@ -110,6 +111,9 @@ enum StringControlCode {
SCC_NEWGRF_PRINT_WORD_SPEED, ///< Read 2 bytes from the stack as signed speed
SCC_NEWGRF_PRINT_WORD_LITRES, ///< Read 2 bytes from the stack as signed litres
SCC_NEWGRF_PRINT_QWORD_CURRENCY, ///< Read 8 bytes from the stack as currency
+ SCC_NEWGRF_PRINT_HEX_BYTE, ///< Read 1 byte from the stack and print it as hex
+ SCC_NEWGRF_PRINT_HEX_WORD, ///< Read 2 bytes from the stack and print it as hex
+ SCC_NEWGRF_PRINT_HEX_DWORD, ///< Read 4 bytes from the stack and print it as hex
SCC_NEWGRF_PUSH_WORD, ///< Pushes 2 bytes onto the stack
SCC_NEWGRF_UNPRINT, ///< "Unprints" the given number of bytes from the string
SCC_NEWGRF_DISCARD_WORD, ///< Discard the next two bytes