summaryrefslogtreecommitdiff
path: root/strgen
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-09-13 20:38:36 +0000
committerdarkvater <darkvater@openttd.org>2004-09-13 20:38:36 +0000
commitfc9a450e758067385129eddf3001efee9e562518 (patch)
treefbd94462b721e747cd83ba19d0dbf192ffd81440 /strgen
parentadd49120dde81d212df460679bec15cbdd04a6a3 (diff)
downloadopenttd-fc9a450e758067385129eddf3001efee9e562518.tar.xz
(svn r237) -Fix: [1025836] Company value problem (again). Now company value rightly shows the value, including ALL your money.
-Fix: Graphs now accomodate 64bit numbers (so the company value graph doesn't plummet into -... if value is too big) -Strgen: added CURRCOMPACT64 for this, and 64bit versions of several macros.
Diffstat (limited to 'strgen')
-rw-r--r--strgen/strgen.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/strgen/strgen.c b/strgen/strgen.c
index 8726de932..9e146feca 100644
--- a/strgen/strgen.c
+++ b/strgen/strgen.c
@@ -246,10 +246,12 @@ static const CmdStruct _cmd_structs[] = {
{"CURRENCY", EmitSingleByte, 0x7F},
- {"CURRCOMPACT", EmitEscapedByte, 0}, // compact currency
- {"INT32", EmitEscapedByte, 1}, // compact currency
- {"REV", EmitEscapedByte, 2}, // openttd revision string
- {"SHORTCARGO", EmitEscapedByte, 3}, // short cargo description, only ### tons, or ### litres
+ // 0x85
+ {"CURRCOMPACT", EmitEscapedByte, 0}, // compact currency (32 bits)
+ {"INT32", EmitEscapedByte, 1}, // signed 32 bit integer
+ {"REV", EmitEscapedByte, 2}, // openttd revision string
+ {"SHORTCARGO", EmitEscapedByte, 3}, // short cargo description, only ### tons, or ### litres
+ {"CURRCOMPACT64", EmitEscapedByte, 4}, // compact currency 64 bits
{"STRINL", EmitStringInl, 0x81},