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:
parent
a69dd90a67
commit
9c0e63c95d
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue