rodecomp/Source/Contents/WorldNavigation.cpp
ragnarok-clanker 4cf3413524 Decompile 4 functions in Source/Client/Mode/CGameMode.h, Source/Contents/Ground/TerrainCoordinates.cpp, ...
Batch #1556 by ragnarok-clanker: 2 byte-identical, 2 confirmed by peer review.

- fn_19489 CNavi_Link::GetLinkedInfo: byte-identical
- fn_19481 CNaviInfo::IsVisited: byte-identical
- fn_45449 CNaviData::Clear: logic confirmed by peer review
- fn_19371 CNaviData::~CNaviData: logic confirmed by peer review

Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
Adds to the build: Source/Contents/NavigationDestinations.cpp, Source/Contents/NavigationGraph.cpp, Source/Contents/WorldNavigation.cpp
2026-10-28 18:48:31 +00:00

21 lines
705 B
C++

#include "Client/Mode/ActiveGameMode.h"
#include "Client/Mode/CGameMode.h"
#include "Contents/Actors/RenderObject.h"
#include "Contents/NavigationManager.h"
#include "Contents/World/WorldScene.h"
// OFFSET: 0x00B961E0
bool CNavigationManager::PlayerCell(int* column, int* row) {
CGameMode* mode = static_cast<CGameMode*>(g_world.ActiveGameMode());
if (mode == nullptr) {
return false;
}
mode->PlayerCell(column, row);
return true;
}
// OFFSET: 0x00CD5510
void CGameMode::PlayerCell(int* column, int* row) const {
const auto* player = reinterpret_cast<const CRenderObject*>(this->scene->player);
this->WorldCell(player->render.position[0], player->render.position[2], *column, *row);
}