1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 05:53:02 +01:00

Make the virtual floor optional, on by default.

This commit is contained in:
Aaron van Geffen
2018-01-10 15:05:05 +01:00
parent 0fc596d758
commit 1d7bec8a11
8 changed files with 48 additions and 20 deletions

View File

@@ -169,13 +169,12 @@ void input_handle_keyboard(bool isTitle)
}
}
if (gInputPlaceObjectModifier & (PLACE_OBJECT_MODIFIER_COPY_Z | PLACE_OBJECT_MODIFIER_SHIFT_Z))
if (gConfigGeneral.use_virtual_floor)
{
map_enable_virtual_floor();
}
else
{
map_remove_virtual_floor();
if (gInputPlaceObjectModifier & (PLACE_OBJECT_MODIFIER_COPY_Z | PLACE_OBJECT_MODIFIER_SHIFT_Z))
map_enable_virtual_floor();
else
map_remove_virtual_floor();
}
// Handle key input