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

Method GetRemovalCost

src/town_cmd.cpp:232–235  ·  view source on GitHub ↗

* Get the cost for removing this house. * @return The cost adjusted for inflation, etc. */

Source from the content-addressed store, hash-verified

230 * @return The cost adjusted for inflation, etc.
231 */
232Money HouseSpec::GetRemovalCost() const
233{
234 return (_price[PR_CLEAR_HOUSE] * this->removal_cost) >> 8;
235}
236
237static bool TryBuildTownHouse(Town *t, TileIndex tile, TownExpandModes modes);
238static Town *CreateRandomTown(uint attempts, uint32_t townnameparts, TownSize size, bool city, TownLayout layout);

Callers 1

ClearTile_TownFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected