ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/maps/perl/bank.ext
(Generate patch)

Comparing deliantra/maps/perl/bank.ext (file contents):
Revision 1.14 by pippijn, Tue May 23 12:09:42 2006 UTC vs.
Revision 1.15 by pippijn, Tue May 23 13:07:10 2006 UTC

70 70
71 return "You can not $action fractions." 71 return "You can not $action fractions."
72 unless $amount =~ /^\d+$/; 72 unless $amount =~ /^\d+$/;
73 73
74 # First check for possible overflow and user stupidity 74 # First check for possible overflow and user stupidity
75 if ($amount > 10**12) { 75 if ($amount > 2**31) {
76 return "Sorry, we do not handle more than 1,000,000,000,000 units for one ".$action."."; 76 return "Sorry, we do not handle that kind of money for one ".$action.".";
77 } elsif ($amount == 0) { 77 } elsif ($amount == 0) {
78 return "You can not ".$action." nothing."; 78 return "You can not ".$action." nothing.";
79 } elsif ($amount < 0) { 79 } elsif ($amount < 0) {
80 return "You can not ".$action." negative values."; 80 return "You can not ".$action." negative values.";
81 } 81 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines