From c8785bac55884bd8e84a9c90bbb450a05de3d67d Mon Sep 17 00:00:00 2001 From: Jeroen D Stout Date: Fri, 6 Oct 2017 19:56:51 +0200 Subject: [PATCH] Add virtual floor removal check to input --- src/openrct2-ui/input/Input.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/openrct2-ui/input/Input.cpp b/src/openrct2-ui/input/Input.cpp index fdccfb1454..4073dc056c 100644 --- a/src/openrct2-ui/input/Input.cpp +++ b/src/openrct2-ui/input/Input.cpp @@ -169,6 +169,11 @@ void input_handle_keyboard(bool isTitle) } } + if (!(gInputPlaceObjectModifier & (PLACE_OBJECT_MODIFIER_COPY_Z | PLACE_OBJECT_MODIFIER_SHIFT_Z))) + { + map_remove_virtual_floor(); + } + // Handle key input sint32 key; while (!gOpenRCT2Headless && (key = get_next_key()) != 0)