From 9c0e63c95d15f4cd22a8b8e84a73be351863015d Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 04:29:31 +0000 Subject: [PATCH] Decompile fn_17494 (C3dActorV2::Update) Batch #11713 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_17494 C3dActorV2::Update: logic confirmed by peer review Peer-reviewed-by: Yommy, KWDev Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Models/ModelPlayback.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Contents/Models/ModelPlayback.cpp b/Source/Contents/Models/ModelPlayback.cpp index a1087a20..0e893045 100644 --- a/Source/Contents/Models/ModelPlayback.cpp +++ b/Source/Contents/Models/ModelPlayback.cpp @@ -45,11 +45,11 @@ void C3dActorV2::Update() { } const unsigned tick = GetTickCount(); - unsigned frame = UnsignedFrame(static_cast(tick - this->startTick) * this->speed); + unsigned frame = static_cast(static_cast(tick - this->startTick) * this->speed); if (static_cast(frame) >= this->duration) { if (this->playback == 1) { - frame = UnsignedFrame(this->duration - 1.0); + frame = static_cast(this->duration - 1.0); } else { this->startTick = tick; frame = 0;