Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenLoco/OpenLoco
/ validCoord
Function
validCoord
src/Engine/include/OpenLoco/Engine/World.hpp:53–56 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
51
static_assert(sizeof(TilePos2) == 4);
52
53
constexpr bool validCoord(const coord_t coord)
54
{
55
return (coord >= 0) && (coord < kMapWidth);
56
}
57
58
constexpr bool validTileCoord(const tile_coord_t coord)
59
{
Callers
1
validCoords
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected