1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 16:24:35 +01:00

Add virtual floor removal check to input

This commit is contained in:
Jeroen D Stout
2017-10-06 19:56:51 +02:00
committed by Aaron van Geffen
parent 4354aae958
commit c8785bac55

View File

@@ -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)