Merge pull request #1296 from Azaezel/alpha41/revertReformulation

roll back player animation picking
This commit is contained in:
Areloch 2024-07-26 17:15:46 -05:00 committed by GitHub
commit c0dec83a21
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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