mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix scenery eye dropper interaction with footpaths
This commit is contained in:
parent
8f59b04d32
commit
d53f276207
|
@ -1078,7 +1078,7 @@ static void scenery_eyedropper_tool_down(sint16 x, sint16 y, sint16 widgetIndex)
|
||||||
{
|
{
|
||||||
sint32 entryIndex = footpath_element_get_path_scenery_index(mapElement);
|
sint32 entryIndex = footpath_element_get_path_scenery_index(mapElement);
|
||||||
rct_scenery_entry * sceneryEntry = get_footpath_item_entry(entryIndex);
|
rct_scenery_entry * sceneryEntry = get_footpath_item_entry(entryIndex);
|
||||||
if (sceneryEntry != NULL || sceneryEntry != (rct_scenery_entry *)-1) {
|
if (sceneryEntry != NULL && sceneryEntry != (rct_scenery_entry *)-1) {
|
||||||
sint32 sceneryId = get_scenery_id_from_entry_index(OBJECT_TYPE_PATH_BITS, entryIndex);
|
sint32 sceneryId = get_scenery_id_from_entry_index(OBJECT_TYPE_PATH_BITS, entryIndex);
|
||||||
if (sceneryId != -1 && window_scenery_set_selected_item(sceneryId)) {
|
if (sceneryId != -1 && window_scenery_set_selected_item(sceneryId)) {
|
||||||
gWindowSceneryEyedropperEnabled = false;
|
gWindowSceneryEyedropperEnabled = false;
|
||||||
|
|
Loading…
Reference in New Issue