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

Function GetTileHash

src/vehicle.cpp:421–424  ·  view source on GitHub ↗

* Compute hash for tile coordinate. */

Source from the content-addressed store, hash-verified

419 * Compute hash for tile coordinate.
420 */
421static inline uint GetTileHash(uint x, uint y)
422{
423 return ComposeTileHash(GetTileHash1D(x), GetTileHash1D(y));
424}
425
426static std::array<Vehicle *, TOTAL_TILE_HASH_SIZE> _vehicle_tile_hash{};
427

Callers 2

IteratorMethod · 0.85
UpdateVehicleTileHashFunction · 0.85

Calls 2

ComposeTileHashFunction · 0.85
GetTileHash1DFunction · 0.85

Tested by

no test coverage detected