From eadd6765e139d452ab11a5785b1761901a1932aa Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 20 Oct 2007 14:51:09 +0000 Subject: (svn r11312) -Codechange: implement a overflow safe integer and use that for money and don't misuses CommandCost to have a overflow safe integer. Based on a patch by Noldo. --- src/openttd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/openttd.h') diff --git a/src/openttd.h b/src/openttd.h index 5514c2165..2fdf8e0a9 100644 --- a/src/openttd.h +++ b/src/openttd.h @@ -69,7 +69,9 @@ typedef uint16 SignID; typedef uint16 GroupID; typedef uint16 EngineRenewID; typedef uint16 DestinationID; -typedef int64 Money; + +typedef OverflowSafeInt OverflowSafeInt64; +typedef OverflowSafeInt64 Money; /* DestinationID must be at least as large as every these below, because it can * be any of them -- cgit v1.2.3-70-g09d2