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

Function IsValidTile

src/tile_map.h:161–164  ·  view source on GitHub ↗

* Checks if a tile is valid * * @param tile The tile to check * @return True if the tile is on the map and not one of MP_VOID. */

Source from the content-addressed store, hash-verified

159 * @return True if the tile is on the map and not one of MP_VOID.
160 */
161inline bool IsValidTile(Tile tile)
162{
163 return tile < Map::Size() && !IsTileType(tile, MP_VOID);
164}
165
166/**
167 * Returns the owner of a tile

Callers 15

CmdStoryPageButtonFunction · 0.85
IsPossibleDockingTileFunction · 0.85
CheckForDockingTileFunction · 0.85
TileLoop_WaterFunction · 0.85
HandleClickMethod · 0.85
IsShipDestinationTileFunction · 0.85
ShipControllerFunction · 0.85

Calls 1

IsTileTypeFunction · 0.85

Tested by

no test coverage detected