From 0f856ad408e07d1c7b182a72ebeaff7e597109a6 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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main_gui.c') 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; -- cgit v1.2.3-54-g00ecf