Decompile fn_45477 (AdventureGuide::CUIMonster::SearchNavigation)

Batch #9292 by secret: 0 byte-identical, 1 confirmed by peer review.

- fn_45477 AdventureGuide::CUIMonster::SearchNavigation: logic confirmed by peer review

Peer-reviewed-by: gordaoprogramas, superintelligence, seumadruga
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-01 05:58:56 +00:00
commit 6a88c4419f
2 changed files with 49 additions and 7 deletions

View file

@ -2109,3 +2109,37 @@ void CUIQuest::SearchNavigation() {
}
}
namespace AdventureGuide {
// OFFSET: 0x009C5BB0
// OFFSET: 0x009C6F50
// OFFSET: 0x009CDD40
// OFFSET: 0x009CAE30
// OFFSET: 0x009DBAC0
// FUNCTION: fn_45477
void CUIMonster::SearchNavigation() {
g_navigationManager.unknown_1264 = this->unknown_0088;
g_navigationManager.UpdateSearchResults();
g_navigationManager.unknown_12C4 = 0;
g_navigationManager.unknown_12C8 = 0;
g_navigationManager.SelectNodeState();
if (g_windowMgr.LookupWindow(203)) {
g_navigationManager.SetViewMode(1);
g_navigationManager.ClearSavedTarget();
g_windowMgr.CloseWindow(314);
static_cast<UINavigationV4Wnd*>(g_navigationWindow)->RefreshLayout();
reinterpret_cast<WindowOrdering&>(g_windowMgr).Promote(g_windowMgr.LookupWindow(203));
} else {
g_windowMgr.EnsureWindow(203);
}
}
}