From 2e8848d4bebe179c153fd2cc47e1fc6eb89a722b Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 4 Nov 2026 17:15:44 +0000 Subject: [PATCH] Decompile fn_19620 (CNavigationManager::UpdateSearchResults) Batch #10645 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_19620 CNavigationManager::UpdateSearchResults: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, dori, StrawberrysherbetIX Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/NavigationRoute.cpp | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/Source/Contents/NavigationRoute.cpp b/Source/Contents/NavigationRoute.cpp index 139c2e95..6c6d4dbb 100644 --- a/Source/Contents/NavigationRoute.cpp +++ b/Source/Contents/NavigationRoute.cpp @@ -1189,30 +1189,7 @@ __declspec(noinline) bool CNavigationManager::UpdateSearchResults() { } std::sort(this->states.begin(), this->states.end(), [](const NavigationTarget& left, const NavigationTarget& right) { return left > right; }); - this->ClearNodePaths(); - - if (this->unknown_1260 == 0 || this->unknown_1260 == 1) { - for (unsigned index = 0; index < this->states.size(); ++index) { - if (this->states[index].type == 1) { - this->nodePaths.push_back(std::vector(1, static_cast(index))); - } - } - } - - for (unsigned index = 0; index < this->states.size(); ++index) { - const int type = this->states[index].type; - if ((this->unknown_1260 != 0 && type != this->unknown_1260) || type == 1) { - continue; - } - - const int path = this->FindNodePath(index); - if (path == -1) { - this->nodePaths.push_back(std::vector(1, static_cast(index))); - } else { - this->nodePaths[path].push_back(static_cast(index)); - } - } - + this->BuildNodePaths(); this->SelectNodePath(this->unknown_1264); return true; }