Переглянути джерело

pickanimation filter fix, with docs
sorts the order of operations flaws clang was complaining about, with explainations on why

AzaezelX 1 рік тому
батько
коміт
61978fa4da
1 змінених файлів з 3 додано та 3 видалено
  1. 3 3
      Engine/source/T3D/player.cpp

+ 3 - 3
Engine/source/T3D/player.cpp

@@ -4014,9 +4014,9 @@ void Player::updateActionThread()
       mActionAnimation.callbackTripped = true;
    }
 
-   if ((mActionAnimation.action == PlayerData::NullAnimation) ||
-       ((!mActionAnimation.waitForEnd || mActionAnimation.atEnd) &&
-       (!mActionAnimation.holdAtEnd && (mActionAnimation.delayTicks -= !mMountPending) <= 0)))
+   if (mActionAnimation.action == PlayerData::NullAnimation || //no animation
+      ((!mActionAnimation.waitForEnd || (mActionAnimation.atEnd && !mActionAnimation.holdAtEnd) && //either not waiting till the end, or not holding that state
+         (mActionAnimation.delayTicks -= mMountPending) <= 0))) //not waiting to mount
    {
       pickActionAnimation();
    }