mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 00:03:11 +01:00
Fix #3002. Fix ride construction on water breaking with shift.
Issue caused by a mistake during refactoring.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user