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

Function TileHash2Bit

src/tile_map.h:342–345  ·  view source on GitHub ↗

* Get the last two bits of the TileHash * from a tile position. * * @see TileHash() * @param x The X coordinate * @param y The Y coordinate * @return The last two bits from hash of the tile */

Source from the content-addressed store, hash-verified

340 * @return The last two bits from hash of the tile
341 */
342inline uint TileHash2Bit(uint x, uint y)
343{
344 return GB(TileHash(x, y), 0, 2);
345}
346
347#endif /* TILE_MAP_H */

Callers 3

GetVariableMethod · 0.85
DrawTileLayoutFunction · 0.85
DrawTile_TownFunction · 0.85

Calls 2

GBFunction · 0.85
TileHashFunction · 0.85

Tested by

no test coverage detected