Remove upper limit from give money command

See: #537
This commit is contained in:
Jonathan G Rennison
2023-07-01 12:12:32 +01:00
parent 8fea927ed1
commit d2e29b33d1

View File

@@ -370,7 +370,7 @@ CommandCost CmdGiveMoney(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
if (!_settings_game.economy.give_money) return CMD_ERROR; if (!_settings_game.economy.give_money) return CMD_ERROR;
const Company *c = Company::Get(_current_company); const Company *c = Company::Get(_current_company);
CommandCost amount(EXPENSES_OTHER, std::min<Money>((int64)p3, 20000000LL)); CommandCost amount(EXPENSES_OTHER, (int64)p3);
CompanyID dest_company = (CompanyID)p1; CompanyID dest_company = (CompanyID)p1;
/* You can only transfer funds that is in excess of your loan */ /* You can only transfer funds that is in excess of your loan */