rodecomp/Source/Contents/World/WorldActors.cpp
ragnarok-clanker 9fa6726c6b Confirm fn_17672 (CWorld::CreatePlayer)
Batch #14449 by SapitoSucio: 1 byte-identical, 0 confirmed by peer review.

- fn_17672 CWorld::CreatePlayer: byte-identical (already on main)

Merged automatically: every function is byte-identical to the original.
2026-11-07 09:18:19 +00:00

25 lines
579 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;
}
#pragma inline_depth(0)
// OFFSET: 0x00AC8470
// FUNCTION: fn_17672
void CWorld::CreatePlayer() {
CPlayer* player = new CPlayer();
this->player = player;
this->objects.push_back(player);
}
#pragma inline_depth()