From 0293218890aa8bf2863f062dd64643072d2078bb Mon Sep 17 00:00:00 2001 From: Ted John Date: Mon, 16 May 2016 18:24:36 +0100 Subject: [PATCH] fix #3633: scenery tool, CTRL does not work correctly --- src/windows/top_toolbar.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/windows/top_toolbar.c b/src/windows/top_toolbar.c index 7109ef4832..b948ab02ad 100644 --- a/src/windows/top_toolbar.c +++ b/src/windows/top_toolbar.c @@ -1046,7 +1046,7 @@ void sub_6E1F34(sint16 x, sint16 y, uint16 selected_scenery, sint16* grid_x, sin if (interaction_type != VIEWPORT_INTERACTION_ITEM_NONE){ gSceneryCtrlPressed = true; - gSceneryPlaceZ = map_element->base_height * 8; + gSceneryCtrlPressZ = map_element->base_height * 8; } } } else { @@ -1117,7 +1117,7 @@ void sub_6E1F34(sint16 x, sint16 y, uint16 selected_scenery, sint16* grid_x, sin } } else{ - sint16 z = gSceneryPlaceZ; + sint16 z = gSceneryCtrlPressZ; screen_get_map_xy_quadrant_with_z(x, y, z, grid_x, grid_y, &cl); @@ -1194,7 +1194,7 @@ void sub_6E1F34(sint16 x, sint16 y, uint16 selected_scenery, sint16* grid_x, sin } } else{ - sint16 z = gSceneryPlaceZ; + sint16 z = gSceneryCtrlPressZ; screen_get_map_xy_with_z(x, y, z, grid_x, grid_y); // If SHIFT pressed @@ -1288,7 +1288,7 @@ void sub_6E1F34(sint16 x, sint16 y, uint16 selected_scenery, sint16* grid_x, sin } } else{ - sint16 z = gSceneryPlaceZ; + sint16 z = gSceneryCtrlPressZ; screen_get_map_xy_side_with_z(x, y, z, grid_x, grid_y, &cl); // If SHIFT pressed @@ -1347,7 +1347,7 @@ void sub_6E1F34(sint16 x, sint16 y, uint16 selected_scenery, sint16* grid_x, sin } } else{ - sint16 z = gSceneryPlaceZ; + sint16 z = gSceneryCtrlPressZ; screen_get_map_xy_with_z(x, y, z, grid_x, grid_y); // If SHIFT pressed