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

This commit is contained in:
ZehMatt authored and Aaron van Geffen committed 2018-03-04 19:28:56 +01:00
1 parent 72114ec6e8
commit fdf7adecd9
3 files changed
+12 -15

No files matched your search

+1 -6
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;