1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 11:33:03 +01:00

Fix #7002: Always invalidate virtual floor regardless of selection.

This commit is contained in:
ZehMatt
2018-03-03 12:34:27 +01:00
committed by Aaron van Geffen
parent 72114ec6e8
commit fdf7adecd9
3 changed files with 12 additions and 15 deletions

View File

@@ -3264,7 +3264,7 @@ sint32 map_can_construct_with_clear_at(sint32 x, sint32 y, sint32 zLow, sint32 z
sint32 al, ah, bh, cl, ch, water_height;
al = ah = bh = cl = ch = water_height = 0;
uint8 slope = 0;
gMapGroundFlags = ELEMENT_IS_ABOVE_GROUND;
bool canBuildCrossing = false;
if (x >= gMapSizeUnits || y >= gMapSizeUnits || x < 32 || y < 32) {
@@ -4819,11 +4819,6 @@ void map_invalidate_virtual_floor_tiles()
}
}
// Do not invalidate if we're between ticks.
if (min_position.x == std::numeric_limits<sint16>::max() || min_position.y == std::numeric_limits<sint16>::max() ||
max_position.x == std::numeric_limits<sint16>::lowest() || max_position.y == std::numeric_limits<sint16>::lowest())
return;
// Apply the virtual floor size to the computed invalidation area.
min_position.x -= gMapVirtualFloorBaseSize + 1;
min_position.y -= gMapVirtualFloorBaseSize + 1;