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

Function GetViewportHashX

src/vehicle.cpp:77–80  ·  view source on GitHub ↗

Compute hash for vehicle coord */

Source from the content-addressed store, hash-verified

75
76/* Compute hash for vehicle coord */
77static inline uint GetViewportHashX(int x)
78{
79 return GB(x, GEN_HASHX_BUCKET_BITS + ZOOM_BASE_SHIFT, GEN_HASHX_BITS);
80}
81
82static inline uint GetViewportHashY(int y)
83{

Callers 3

GetViewportHashFunction · 0.85
ViewportAddVehiclesFunction · 0.85
CheckClickOnVehicleFunction · 0.85

Calls 1

GBFunction · 0.85

Tested by

no test coverage detected