mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 00:03:11 +01:00
Fix clear scenery window closing immediately (#22442)
This commit is contained in:
@@ -1024,7 +1024,7 @@ namespace OpenRCT2::Ui::Windows
|
|||||||
{
|
{
|
||||||
if (!(InputTestFlag(INPUT_FLAG_TOOL_ACTIVE)))
|
if (!(InputTestFlag(INPUT_FLAG_TOOL_ACTIVE)))
|
||||||
return false;
|
return false;
|
||||||
if (gCurrentToolWidget.window_classification != WindowClass::TopToolbar)
|
if (gCurrentToolWidget.window_classification != WindowClass::ClearScenery)
|
||||||
return false;
|
return false;
|
||||||
if (gCurrentToolWidget.widget_index != WIDX_CLEAR_SCENERY)
|
if (gCurrentToolWidget.widget_index != WIDX_CLEAR_SCENERY)
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user