1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-31 10:45:16 +01:00

Map size refactors from NSF (#15112)

* Support large map sizes

* Fix top spin painting

* Fix crooked house

* Increase bb size

* Decrease limit back

* Clang format

* Remove asserts and apply review comments

* Fix rebase mistake

Co-authored-by: Ted John <ted@brambles.org>
This commit is contained in:
Duncan
2021-08-16 20:51:16 +01:00
committed by GitHub
parent bef853d0ab
commit 940cab87d3
36 changed files with 229 additions and 269 deletions

View File

@@ -683,7 +683,7 @@ void SetCheatAction::SetStaffSpeed(uint8_t value) const
void SetCheatAction::OwnAllLand() const
{
const int32_t min = 32;
const int32_t max = gMapSizeUnits - 32;
const int32_t max = GetMapSizeUnits() - 32;
for (CoordsXY coords = { min, min }; coords.y <= max; coords.y += COORDS_XY_STEP)
{