1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 16:24:35 +01:00

Refactor Editor::CheckObjectSelection (#23339)

* Refactor Editor::CheckObjectSelection

* Correct comment in FilterCompatibilityObject
This commit is contained in:
Aaron van Geffen
2024-12-09 19:44:15 +01:00
committed by GitHub
parent 9c0cc28d7f
commit 84e8b35bdc
2 changed files with 28 additions and 36 deletions

View File

@@ -1404,7 +1404,7 @@ namespace OpenRCT2::Ui::Windows
bool FilterCompatibilityObject(const ObjectRepositoryItem& item, uint8_t objectFlag)
{
// Only show compat objects if they are not selected already.
// Only show compat objects if they are selected already.
return !(item.Flags & ObjectItemFlags::IsCompatibilityObject) || (objectFlag & ObjectSelectionFlags::Selected);
}