Decompile 3 functions in Source/Contents/NavigationLink.cpp

Batch #14447 by SapitoSucio: 0 byte-identical, 3 confirmed by peer review.

- fn_19438 CNaviInfo::AddNpc: logic confirmed by peer review
- fn_19439 CNaviInfo::AddLink: logic confirmed by peer review
- fn_19440 CNaviInfo::AddMob: logic confirmed by peer review

Peer-reviewed-by: Yommy, secret
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-07 10:39:12 +00:00
commit 7b0d89d9d6

View file

@ -82,33 +82,39 @@ void CNavi_Link::SetDepth(int depth) {
// OFFSET: 0x00B8D9A0
// FUNCTION: fn_19438
bool CNaviInfo::AddNpc(CNavi_Object* npc) {
std::vector<CNavi_Object*>& npcs = this->npcs;
if (npc == nullptr) {
return false;
}
this->npcs.push_back(npc);
npcs.push_back(npc);
return true;
}
// OFFSET: 0x00B8D9E0
// FUNCTION: fn_19439
bool CNaviInfo::AddLink(CNavi_Link* link) {
std::vector<CNavi_Link*>& links = this->links;
if (link == nullptr) {
return false;
}
this->links.push_back(link);
links.push_back(link);
return true;
}
// OFFSET: 0x00B8DA20
// FUNCTION: fn_19440
bool CNaviInfo::AddMob(CNavi_Object* mob) {
std::vector<CNavi_Object*>& mobs = this->mobs;
if (mob == nullptr) {
return false;
}
this->mobs.push_back(mob);
mobs.push_back(mob);
return true;
}