pickanimation filter fix, with docs

sorts the order of operations flaws clang was complaining about, with explainations on why
This commit is contained in:
AzaezelX 2024-06-11 15:21:24 -05:00
parent 3fbd3119a6
commit 61978fa4da

View file

@ -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();
}