Merge pull request #8970 from Nazey/tooltipBug-8468

Place tree underwater tooltip bug
This commit is contained in:
Duncan 2019-03-26 18:26:06 +00:00 committed by GitHub
commit 9f2e1d7450
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -1390,12 +1390,8 @@ static void sub_6E1F34(
return;
}
// If CTRL and SHIFT not pressed
gSceneryPlaceZ = 0;
uint16_t water_height = tile_element->AsSurface()->GetWaterHeight();
if (water_height != 0)
{
gSceneryPlaceZ = water_height * 16;
}
// If SHIFT pressed
if (gSceneryShiftPressed)