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

Function ChangeTileOwner

src/landscape.cpp:571–574  ·  view source on GitHub ↗

* Change the owner of a tile * @param tile Tile to change * @param old_owner Current owner of the tile * @param new_owner New owner of the tile */

Source from the content-addressed store, hash-verified

569 * @param new_owner New owner of the tile
570 */
571void ChangeTileOwner(TileIndex tile, Owner old_owner, Owner new_owner)
572{
573 _tile_type_procs[GetTileType(tile)]->change_tile_owner_proc(tile, old_owner, new_owner);
574}
575
576void GetTileDesc(TileIndex tile, TileDesc &td)
577{

Callers 4

ChangeTileOwner_ObjectFunction · 0.85
ChangeTileOwner_StationFunction · 0.85
AfterLoadGameFunction · 0.85

Calls 1

GetTileTypeFunction · 0.85

Tested by

no test coverage detected