From 815f5a91017ef0db3e74f78425ba253ebc8920dd Mon Sep 17 00:00:00 2001 From: briaguya Date: Fri, 19 Aug 2022 06:38:39 -0400 Subject: [PATCH] don't filter on right --- soh/soh/Enhancements/randomizer/randomizer.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/soh/soh/Enhancements/randomizer/randomizer.cpp b/soh/soh/Enhancements/randomizer/randomizer.cpp index 868ca0e6e..7025db172 100644 --- a/soh/soh/Enhancements/randomizer/randomizer.cpp +++ b/soh/soh/Enhancements/randomizer/randomizer.cpp @@ -3795,10 +3795,7 @@ void DrawRandoEditor(bool& open) { for (auto areaIt : RandomizerCheckObjects::GetAllRCObjects()) { bool hasItems = false; for (auto locationIt : areaIt.second) { - if (locationIt.visibleInImgui && - excludedLocations.count(locationIt.rc) && - locationSearch.PassFilter(locationIt.rcSpoilerName.c_str())) { - + if (locationIt.visibleInImgui && excludedLocations.count(locationIt.rc)) { hasItems = true; break; } @@ -3809,10 +3806,7 @@ void DrawRandoEditor(bool& open) { if (ImGui::TreeNode(RandomizerCheckObjects::GetRCAreaName(areaIt.first).c_str())) { for (auto locationIt : areaIt.second) { auto elfound = excludedLocations.find(locationIt.rc); - if (locationIt.visibleInImgui && - elfound != excludedLocations.end() && - locationSearch.PassFilter(locationIt.rcSpoilerName.c_str())) { - + if (locationIt.visibleInImgui && elfound != excludedLocations.end()) { if (ImGui::ArrowButton(std::to_string(locationIt.rc).c_str(), ImGuiDir_Left)) { excludedLocations.erase(elfound); }