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

Function GetViewportHashY

src/vehicle.cpp:82–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82static inline uint GetViewportHashY(int y)
83{
84 return GB(y, GEN_HASHY_BUCKET_BITS + ZOOM_BASE_SHIFT, GEN_HASHY_BITS) << GEN_HASHX_BITS;
85}
86
87static inline uint GetViewportHash(int x, int y)
88{

Callers 3

GetViewportHashFunction · 0.85
ViewportAddVehiclesFunction · 0.85
CheckClickOnVehicleFunction · 0.85

Calls 1

GBFunction · 0.85

Tested by

no test coverage detected