Decomp fix for CScriptActorKeyframe

This commit is contained in:
Henrique Gemignani Passos Lima 2022-11-11 04:25:28 +02:00
parent 51eb95e499
commit 07888bab93
No known key found for this signature in database
GPG Key ID: E224F951761145F8
1 changed files with 2 additions and 3 deletions

View File

@ -40,6 +40,7 @@ void CScriptActorKeyframe::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId u
}
x44_28_playing = true;
x40_lifetime = x38_initialLifetime;
SendScriptMsgs(EScriptObjectState::Play, mgr, EScriptObjectMessage::None);
}
} else if (msg == EScriptObjectMessage::InitializedInArea) {
@ -74,9 +75,7 @@ void CScriptActorKeyframe::Think(float dt, CStateManager& mgr) {
CAnimData* animData = act->GetModelData()->GetAnimationData();
if (animData->IsAdditiveAnimation(x34_animationId)) {
animData->DelAdditiveAnimation(x34_animationId);
}
if (animData->GetDefaultAnimation() == x34_animationId) {
} else if (animData->GetDefaultAnimation() == x34_animationId) {
animData->EnableLooping(false);
}
}