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).
This commit is contained in:
ragnarok-clanker 2026-11-05 04:29:31 +00:00
commit 9c0e63c95d

View file

@ -45,11 +45,11 @@ void C3dActorV2::Update() {
}
const unsigned tick = GetTickCount();
unsigned frame = UnsignedFrame(static_cast<float>(tick - this->startTick) * this->speed);
unsigned frame = static_cast<unsigned>(static_cast<float>(tick - this->startTick) * this->speed);
if (static_cast<double>(frame) >= this->duration) {
if (this->playback == 1) {
frame = UnsignedFrame(this->duration - 1.0);
frame = static_cast<unsigned>(this->duration - 1.0);
} else {
this->startTick = tick;
frame = 0;