rodecomp/Source/Contents/World/WorldActors.cpp
ragnarok-clanker 918b893022 Decompile 2 functions in Source/Contents/World/WorldActors.cpp, Source/Contents/World/World.h, ...
Batch #8203 by pedrao: 0 byte-identical, 2 confirmed by peer review.

- fn_17672 CWorld::CreatePlayer: logic confirmed by peer review
- fn_02352 CreateTextureDX9: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, Yommy, System4z
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-31 15:11:25 +00:00

23 lines
532 B
C++

#include "Contents/Actors/Pc.h"
#include "Contents/Actors/RenderObject.h"
#include "Contents/World/World.h"
// OFFSET: 0x00AC8260
// FUNCTION: fn_17668
CRenderObject* CWorld::GetGameActorByAID(std::uint32_t aid) const {
for (CRenderObject* actor : this->actors) {
if (actor->render.accountId == aid) {
return actor;
}
}
return nullptr;
}
// OFFSET: 0x00AC8470
// FUNCTION: fn_17672
void CWorld::CreatePlayer() {
CPlayer* player = new CPlayer();
this->player = player;
this->objects.push_back(player);
}