From e2073d22c4624a24e12522eb8c71c9a5108f89de Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Mon, 29 Feb 2016 20:53:22 +0000 Subject: [PATCH] Fix #3002. Fix ride construction on water breaking with shift. Issue caused by a mistake during refactoring. --- src/windows/ride_construction.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/windows/ride_construction.c b/src/windows/ride_construction.c index 34cdfce3fd..777000c36e 100644 --- a/src/windows/ride_construction.c +++ b/src/windows/ride_construction.c @@ -1983,7 +1983,7 @@ static bool ride_get_place_position_from_screen_position(int screenX, int screen rct_viewport *viewport; if (!_trackPlaceCtrlState) { - if (gInputPlaceObjectModifier & PLACE_OBJECT_MODIFIER_SHIFT_Z) { + if (gInputPlaceObjectModifier & PLACE_OBJECT_MODIFIER_COPY_Z) { get_map_coordinates_from_pos(screenX, screenY, 0xFCCA, &mapX, &mapY, &interactionType, &mapElement, &viewport); if (interactionType != 0) { _trackPlaceCtrlZ = mapElement->base_height * 8; @@ -1991,7 +1991,7 @@ static bool ride_get_place_position_from_screen_position(int screenX, int screen } } } else { - if (!(gInputPlaceObjectModifier & PLACE_OBJECT_MODIFIER_SHIFT_Z)) { + if (!(gInputPlaceObjectModifier & PLACE_OBJECT_MODIFIER_COPY_Z)) { _trackPlaceCtrlState = false; } }