Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
82
static 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
87
static inline uint GetViewportHash(int x, int y)
88
{
Callers
3
GetViewportHash
Function · 0.85
ViewportAddVehicles
Function · 0.85
CheckClickOnVehicle
Function · 0.85
Calls
1
GB
Function · 0.85
Tested by
no test coverage detected