Merge pull request #638 from erorcun/miami

CWanted, anim fix, ped objs renaming, remove III beta features
This commit is contained in:
aap
2020-06-25 15:15:01 +02:00
committed by GitHub
29 changed files with 358 additions and 393 deletions

View File

@@ -97,10 +97,8 @@ CAnimBlendNode::FindKeyFrame(float t)
if(sequence->numFrames == 1){
remainingTime = 0.0f;
}else{
frameA++;
// advance until t is between frameB and frameA
while(t > sequence->GetKeyFrame(frameA)->deltaTime){
while(t > sequence->GetKeyFrame(++frameA)->deltaTime){
t -= sequence->GetKeyFrame(frameA)->deltaTime;
if(frameA + 1 >= sequence->numFrames){
// reached end of animation