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).
23 lines
532 B
C++
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);
|
|
}
|