Mercurial > hg > openttd
changeset 15061:ce5efb7cc2ce draft
(svn r19684) -Fix [FS#3779]: don't show an error message when trying to give another client an amount of 0 money
author | yexo <yexo@openttd.org> |
---|---|
date | Tue, 20 Apr 2010 18:02:08 +0000 |
parents | 280556a26e42 |
children | 4ae8e013d8e4 |
files | src/misc_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/misc_cmd.cpp +++ b/src/misc_cmd.cpp @@ -223,7 +223,7 @@ CommandCost amount(EXPENSES_OTHER, min((Money)p1, (Money)20000000LL)); /* You can only transfer funds that is in excess of your loan */ - if (c->money - c->current_loan < amount.GetCost() || amount.GetCost() <= 0) return CMD_ERROR; + if (c->money - c->current_loan < amount.GetCost() || amount.GetCost() < 0) return CMD_ERROR; if (!_networking || !Company::IsValidID((CompanyID)p2)) return CMD_ERROR; if (flags & DC_EXEC) {