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

Function GetViewportHash

src/vehicle.cpp:87–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87static inline uint GetViewportHash(int x, int y)
88{
89 return GetViewportHashX(x) + GetViewportHashY(y);
90}
91
92/* Maximum size until hash repeats */
93static const uint GEN_HASHX_SIZE = 1 << (GEN_HASHX_BUCKET_BITS + GEN_HASHX_BITS + ZOOM_BASE_SHIFT);

Callers 1

Calls 2

GetViewportHashXFunction · 0.85
GetViewportHashYFunction · 0.85

Tested by

no test coverage detected