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

Function TileAddByDir

src/map_func.h:612–615  ·  view source on GitHub ↗

* Adds a Direction to a tile. * * @param tile The current tile * @param dir The direction in which we want to step * @return the moved tile */

Source from the content-addressed store, hash-verified

610 * @return the moved tile
611 */
612inline TileIndex TileAddByDir(TileIndex tile, Direction dir)
613{
614 return TileAdd(tile, TileOffsByDir(dir));
615}
616
617/**
618 * Adds a DiagDir to a tile.

Callers 5

FindStationsNearbyFunction · 0.85
GrowTownInTileFunction · 0.85
CalcHeightdiffFunction · 0.85

Calls 2

TileOffsByDirFunction · 0.85
TileAddFunction · 0.70

Tested by

no test coverage detected