--- deliantra/server/ext/bank.ext 2008/09/22 01:33:09 1.7 +++ deliantra/server/ext/bank.ext 2009/09/02 00:05:56 1.9 @@ -57,11 +57,11 @@ my $pay = $amount * $coin->value; # First check for possible overflow and user stupidity - if ($amount > 2**30) { - return "Sorry, we do not handle that kind of money for one $action."; - } elsif ($amount == 0) { + if ($pay > 2**30) { + return "Sorry, we do not handle that amount of money for one $action."; + } elsif ($pay == 0) { return "You can not $action nothing."; - } elsif ($amount < 0) { + } elsif ($pay < 0) { return "You can not $action negative values."; }