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

Function GetAvailableMoneyForCommand

src/company_cmd.cpp:252–255  ·  view source on GitHub ↗

* This functions returns the money which can be used to execute a command. * This is either the money of the current company, or INT64_MAX if infinite money * is enabled or there is no such a company "at the moment" like the server itself. * * @return The available money of the current company or INT64_MAX */

Source from the content-addressed store, hash-verified

250 * @return The available money of the current company or INT64_MAX
251 */
252Money GetAvailableMoneyForCommand()
253{
254 return GetAvailableMoney(_current_company);
255}
256
257/**
258 * Verify whether the company can pay the bill.

Callers 6

CmdClearAreaFunction · 0.85
CmdDecreaseLoanFunction · 0.85
CmdLevelLandFunction · 0.85
CmdBuildObjectAreaFunction · 0.85
CmdFoundTownFunction · 0.85
CmdRemoveLongRoadFunction · 0.85

Calls 1

GetAvailableMoneyFunction · 0.85

Tested by

no test coverage detected