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

Fix virtual floor invalidating incorrectly if expanded on x and y axes

This commit is contained in:
mix
2025-11-15 21:58:59 +00:00
committed by GitHub
parent 0fbc2f1db9
commit 140fed1086
2 changed files with 3 additions and 1 deletions

View File

@@ -12,6 +12,7 @@
- Fix: [#25480] The mini track design preview and price are misaligned in Enlarged UI mode.
- Fix: [#25488] Crash in headless mode.
- Fix: [#25494] The Go-Karts steep to flat track does not draw correctly in the flat side tunnel.
- Fix: [#25518] The virtual floor does not draw correctly if expanded on the positive x and y axes.
- Fix: [objects#401] Round tunnels on down slopes glitch.
- Fix: [objects#404] Wooden Wild Mine cars incorrectly allow setting a third remap colour.
- Fix: [objects#408] Australian fountain sets have confusing naming.

View File

@@ -138,7 +138,8 @@ void VirtualFloorInvalidate(const bool alwaysInvalidate)
}
// Do not invalidate new region if floor hasn't moved.
if (min_position == _virtualFloorLastMinPos && _virtualFloorLastMinPos.z == _virtualFloorHeight)
if (min_position == _virtualFloorLastMinPos && max_position == _virtualFloorLastMaxPos
&& _virtualFloorLastMinPos.z == _virtualFloorHeight)
{
return;
}