summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-28 09:31:38 +0000
committertruelight <truelight@openttd.org>2004-12-28 09:31:38 +0000
commit0f856ad408e07d1c7b182a72ebeaff7e597109a6 (patch)
tree02a9337df449d22d70e253554f7bbeed511f7f96
parent968c9ffe609b66bd271bb67afd1a5280b3111f10 (diff)
downloadopenttd-0f856ad408e07d1c7b182a72ebeaff7e597109a6.tar.xz
(svn r1286) -Fix: oeps, I clamp'd some numbers wrong :$
-rw-r--r--main_gui.c2
-rw-r--r--misc_cmd.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/main_gui.c b/main_gui.c
index 787390870..ccdec8f47 100644
--- a/main_gui.c
+++ b/main_gui.c
@@ -88,7 +88,7 @@ void HandleOnEditText(WindowEvent *e) {
int32 money = atoi(e->edittext.str) / GetCurrentCurrencyRate();
char msg[100];
- money = clamp(money, 0, 0xFFFFFFFF); // Clamp between 4 billion and 0
+ money = clamp(money, 0, 0xFFFFFF); // Clamp between 16 million and 0
// Give 'id' the money, and substract it from ourself
if (!DoCommandP(0, money, id, NULL, CMD_GIVE_MONEY)) break;
diff --git a/misc_cmd.c b/misc_cmd.c
index 1ea3ffeef..087eb0a0d 100644
--- a/misc_cmd.c
+++ b/misc_cmd.c
@@ -285,7 +285,7 @@ int32 CmdGiveMoney(int x, int y, uint32 flags, uint32 p1, uint32 p2)
{
SET_EXPENSES_TYPE(EXPENSES_OTHER);
- p1 = clamp(p1, 0, 0xFFFFFFFF); // Clamp between 4 billion and 0
+ p1 = clamp(p1, 0, 0xFFFFFF); // Clamp between 16 million and 0
if (p1 == 0)
return CMD_ERROR;