From b13ac6ac2201861cb735a606db9d5163dcd192be Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 31 Oct 2026 06:31:51 +0000 Subject: [PATCH] Decompile fn_19595 (CNavigationManager::ResetCurrentTarget) Batch #7311 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_19595 CNavigationManager::ResetCurrentTarget: logic confirmed by peer review Peer-reviewed-by: meitogi, gordaoprogramas, aDw Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/NavigationManager.h | 1 + Source/Contents/NavigationSource.cpp | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/Source/Contents/NavigationManager.h b/Source/Contents/NavigationManager.h index 19a900b3..324ec4ce 100644 --- a/Source/Contents/NavigationManager.h +++ b/Source/Contents/NavigationManager.h @@ -351,6 +351,7 @@ public: bool GetRouteFlag() const; int GetSelectedNode() const; CNavi_Link* GetNode(int index) const; + void ResetCurrentTarget(); int AddWrappedRouteLines(int kind, int x, int y, const char* text); bool SelectState(int index); bool SelectNodeState(); diff --git a/Source/Contents/NavigationSource.cpp b/Source/Contents/NavigationSource.cpp index d784323c..504d4a93 100644 --- a/Source/Contents/NavigationSource.cpp +++ b/Source/Contents/NavigationSource.cpp @@ -797,3 +797,11 @@ CNavi_Link* CNavigationManager::GetNode(int index) const { } return nullptr; } + +// OFFSET: 0x00B96F20 +// FUNCTION: fn_19595 +void CNavigationManager::ResetCurrentTarget() { + this->currentTarget = NavigationTarget(); + this->LoadTargetPreview(); + this->ClearRouteNodes(); +}