summaryrefslogtreecommitdiff
path: root/src/openttd.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-18 22:49:55 +0000
committerrubidium <rubidium@openttd.org>2007-06-18 22:49:55 +0000
commit7d6c255044a1e6b9a60d31468d870493270db13c (patch)
tree12388382acdeed152b3d989c6d8532a41083e4e5 /src/openttd.h
parentfbb22487fc5757874b119f62ab8128314d6664ab (diff)
downloadopenttd-7d6c255044a1e6b9a60d31468d870493270db13c.tar.xz
(svn r10210) -Codechange: make all money related variables 64 bits, so overflowing them should become a little harder.
Diffstat (limited to 'src/openttd.h')
-rw-r--r--src/openttd.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/openttd.h b/src/openttd.h
index b64c982d9..460f29bd6 100644
--- a/src/openttd.h
+++ b/src/openttd.h
@@ -69,7 +69,7 @@ typedef uint16 SignID;
typedef uint16 GroupID;
typedef uint16 EngineRenewID;
typedef uint16 DestinationID;
-typedef int32 Money;
+typedef int64 Money;
/* DestinationID must be at least as large as every these below, because it can
* be any of them
@@ -386,8 +386,6 @@ public:
* @param cst the initial cost of this command
*/
CommandCost(Money cst) : cost(cst), message(INVALID_STRING_ID), success(true) {}
- /** "Hack" to make everything compile nicely, not needed when cost is int64 */
- CommandCost(uint cst) : cost(cst), message(INVALID_STRING_ID), success(true) {}
/**
* Adds the cost of the given command return value to this cost.