From 879057de252056df7c295e161664cb7ccac70798 Mon Sep 17 00:00:00 2001 From: yexo Date: Tue, 20 Apr 2010 18:02:08 +0000 Subject: (svn r19684) -Fix [FS#3779]: don't show an error message when trying to give another client an amount of 0 money --- src/misc_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/misc_cmd.cpp b/src/misc_cmd.cpp index fc4bec9b6..fe9bc9fde 100644 --- a/src/misc_cmd.cpp +++ b/src/misc_cmd.cpp @@ -223,7 +223,7 @@ CommandCost CmdGiveMoney(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 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) { -- cgit v1.2.3-70-g09d2