From c5317396028d8ed03e1bc34d89d1bdd9ae31c04c Mon Sep 17 00:00:00 2001 From: truelight Date: Tue, 28 Dec 2004 09:31:38 +0000 Subject: (svn r1286) -Fix: oeps, I clamp'd some numbers wrong :$ --- main_gui.c | 2 +- misc_cmd.c | 2 +- 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; -- cgit v1.2.3-70-g09d2