mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #706 right click incorrectly using mouse x,y instead of tile
This commit is contained in:
parent
e7a0b31884
commit
e9005027a5
|
@ -205,7 +205,7 @@ int viewport_interaction_get_item_right(int x, int y, viewport_interaction_info
|
|||
} else if (mapElement->properties.track.type == 1 || mapElement->properties.track.type == 2 || mapElement->properties.track.type == 3) {
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_MAP_TOOLTIP_ARGS + 2, uint16) = 1333;
|
||||
} else {
|
||||
if (!map_is_location_owned(x, y, mapElement->base_height << 4))
|
||||
if (!map_is_location_owned(info->x, info->y, mapElement->base_height << 4))
|
||||
return info->type = VIEWPORT_INTERACTION_ITEM_NONE;
|
||||
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_MAP_TOOLTIP_ARGS + 2, uint16) = ride->name;
|
||||
|
|
Loading…
Reference in New Issue