MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / GetMapSizeMinus2

Function GetMapSizeMinus2

src/openrct2/world/Map.cpp:130–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 return { (gameState.mapSize.x - 1) * kCoordsXYStep, (gameState.mapSize.y - 1) * kCoordsXYStep };
129 }
130 CoordsXY GetMapSizeMinus2()
131 {
132 auto& gameState = getGameState();
133 return { (gameState.mapSize.x * kCoordsXYStep) + (8 * kCoordsXYStep - 2),
134 (gameState.mapSize.y * kCoordsXYStep) + (8 * kCoordsXYStep - 2) };
135 }
136 CoordsXY GetMapSizeMaxXY()
137 {
138 return GetMapSizeUnits() - CoordsXY{ 1, 1 };

Callers 3

ViewportUpdatePositionFunction · 0.85
InputScrollViewportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected