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:
committed by
GitHub
parent
41b5e8bbca
commit
46de90df86
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user