From 8adfd9a87ca5cfd28785942fe232e81b3739d891 Mon Sep 17 00:00:00 2001 From: Hielke Morsink Date: Tue, 27 Mar 2018 23:09:41 +0200 Subject: [PATCH] Fix #7303 Visual glitch with virtual floor near map edges --- distribution/changelog.txt | 1 + src/openrct2/paint/VirtualFloor.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 701177d7d6..cc84e462f1 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -9,6 +9,7 @@ - Fix: [#3596] Saving parks, landscapes and tracks with a period in the filenames don't get their extension. - Fix: [#5210] Default system dialog not accessible from saving landscape window. - Fix: [#7176] Mechanics sometimes fall down from rides. +- Fix: [#7303] Visual glitch with virtual floor near map edges. - Fix: [#7327] Abstract scenery and stations don't get fully See-Through when hiding them (original bug). - Improved: Raising land near the map edge makes the affected area smaller instead of showing an 'off edge map' error. diff --git a/src/openrct2/paint/VirtualFloor.cpp b/src/openrct2/paint/VirtualFloor.cpp index e70f3a03c2..b20dbd0c56 100644 --- a/src/openrct2/paint/VirtualFloor.cpp +++ b/src/openrct2/paint/VirtualFloor.cpp @@ -304,6 +304,9 @@ void virtual_floor_paint(paint_session * session) { 0, -32 } }; + if (_virtualFloorHeight < MINIMUM_LAND_HEIGHT) + return; + uint8 direction = session->CurrentRotation; // This is a virtual floor, so no interactions