Fix #3002. Fix ride construction on water breaking with shift.

Issue caused by a mistake during refactoring.
This commit is contained in:
duncanspumpkin 2016-02-29 20:53:22 +00:00
parent 1d99c233f6
commit e2073d22c4
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}