From 3da21611fec75151f2b7c0268aff37a0d23c7b5b Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 15:30:33 +0000 Subject: [PATCH] Confirm fn_17680 (CWorld::LoadDeferredModels) Batch #18117 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_17680 CWorld::LoadDeferredModels: logic confirmed by peer review (already on main) Peer-reviewed-by: ragnarok-clanker, alisonrag, kyoshi, cremane Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/World/WorldModelLoading.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Source/Contents/World/WorldModelLoading.cpp b/Source/Contents/World/WorldModelLoading.cpp index e0f85fd38..5f5ce9be8 100644 --- a/Source/Contents/World/WorldModelLoading.cpp +++ b/Source/Contents/World/WorldModelLoading.cpp @@ -78,18 +78,24 @@ namespace { } actor->CopyVolumes(resource.volumes); + actor->occlusionEnabled = 0; actor->SetSpeed(placement.animationSpeed); actor->playback = placement.animation; - std::memcpy(actor->position, placement.position, sizeof(actor->position)); + actor->position[0] = placement.position[0]; + actor->position[1] = placement.position[1]; + actor->position[2] = placement.position[2]; actor->dirty = 1; - std::memcpy(actor->rotation, placement.rotation, sizeof(actor->rotation)); + actor->rotation[0] = placement.rotation[0]; + actor->rotation[1] = placement.rotation[1]; + actor->rotation[2] = placement.rotation[2]; actor->dirty = 1; - std::memcpy(actor->scale, placement.scale, sizeof(actor->scale)); + actor->scale[0] = placement.scale[0]; + actor->scale[1] = placement.scale[1]; + actor->scale[2] = placement.scale[2]; actor->dirty = 1; actor->commandMode = placement.flag; actor->color = static_cast(placement.index); actor->Assign(resource); - actor->occlusionEnabled = 0; actor->Prepare(g_worldLightDirection, g_worldDiffuse, g_worldAmbient); return actor;