diff --git a/src/main_gui.cpp b/src/main_gui.cpp index 1494d152b1..390df6476b 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -50,7 +50,7 @@ void CcGiveMoney(const CommandCost &result, TileIndex tile, uint32 p1, uint32 p2) { #ifdef ENABLE_NETWORK - if (result.Failed() || !_settings_game.economy.give_money) return; + if (result.Failed() || !_settings_game.economy.give_money || !_networking) return; /* Inform the company of the action of one of its clients (controllers). */ char msg[64]; diff --git a/src/misc_cmd.cpp b/src/misc_cmd.cpp index e7da13c7aa..ecf0129332 100644 --- a/src/misc_cmd.cpp +++ b/src/misc_cmd.cpp @@ -261,7 +261,7 @@ CommandCost CmdGiveMoney(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 /* 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 (!_networking || !Company::IsValidID(dest_company)) return CMD_ERROR; + if (!Company::IsValidID(dest_company)) return CMD_ERROR; if (flags & DC_EXEC) { /* Add money to company */