1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 15:54:31 +01:00

Create map_get_water_height()

This commit is contained in:
Michael Steenbeek
2017-07-27 17:15:56 +02:00
committed by GitHub
parent 41b5e8bbca
commit 46de90df86
21 changed files with 76 additions and 57 deletions

View File

@@ -593,7 +593,7 @@ void sub_68A15E(sint32 screenX, sint32 screenY, sint16 *x, sint16 *y, sint32 *di
sint16 originalZ = 0;
if (interactionType == VIEWPORT_INTERACTION_ITEM_WATER) {
originalZ = (myMapElement->properties.surface.terrain & MAP_ELEMENT_WATER_HEIGHT_MASK) << 4;
originalZ = map_get_water_height(myMapElement) << 4;
}
rct_xy16 start_vp_pos = screen_coord_to_viewport_coord(viewport, screenX, screenY);