MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetMaxLoan

Method GetMaxLoan

src/company_cmd.cpp:107–111  ·  view source on GitHub ↗

* Calculate the max allowed loan for this company. * @return the max loan amount. */

Source from the content-addressed store, hash-verified

105 * @return the max loan amount.
106 */
107Money Company::GetMaxLoan() const
108{
109 if (this->max_loan == COMPANY_MAX_LOAN_DEFAULT) return _economy.max_loan;
110 return this->max_loan;
111}
112
113/**
114 * Sets the local company and updates the settings that are set on a

Callers 5

CmdIncreaseLoanFunction · 0.80
GetWidgetStringMethod · 0.80
OnPaintMethod · 0.80
CompanyCheckBankruptFunction · 0.80
GetMaxLoanAmountMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected