diff options
author | truelight <truelight@openttd.org> | 2004-12-28 09:31:38 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-12-28 09:31:38 +0000 |
commit | c5317396028d8ed03e1bc34d89d1bdd9ae31c04c (patch) | |
tree | 02a9337df449d22d70e253554f7bbeed511f7f96 /main_gui.c | |
parent | a5a811f7677ad474d4630d074172872814ae935e (diff) | |
download | openttd-c5317396028d8ed03e1bc34d89d1bdd9ae31c04c.tar.xz |
(svn r1286) -Fix: oeps, I clamp'd some numbers wrong :$
Diffstat (limited to 'main_gui.c')
-rw-r--r-- | main_gui.c | 2 |
1 files changed, 1 insertions, 1 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; |