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

Function ComposeTileHash

src/vehicle.cpp:413–416  ·  view source on GitHub ↗

* Compose two 1D hashes into 2D hash. */

Source from the content-addressed store, hash-verified

411 * Compose two 1D hashes into 2D hash.
412 */
413static inline uint ComposeTileHash(uint hx, uint hy)
414{
415 return hx | hy << TILE_HASH_BITS;
416}
417
418/**
419 * Compute hash for tile coordinate.

Callers 3

GetTileHashFunction · 0.85
IteratorMethod · 0.85
SkipEmptyBucketsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected