Skip to content

Commit

Permalink
Merge pull request #307 from ethanmoffat/fix_animation
Browse files Browse the repository at this point in the history
Fix animation timing for emotes
  • Loading branch information
ethanmoffat committed May 11, 2023
2 parents bc2dba5 + b206ba6 commit ed65589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EndlessClient/Rendering/Character/CharacterAnimator.cs
Expand Up @@ -523,7 +523,7 @@ private void AnimateCharacterEmotes()
var playersDoneEmoting = new HashSet<int>();
foreach (var pair in _startEmoteTimes.Values)
{
if ((pair.ActionTick - _fixedTimeStepRepository.TickCount) >= TICKS_PER_FRAME * 2)
if ((_fixedTimeStepRepository.TickCount - pair.ActionTick) >= TICKS_PER_FRAME * 2)
{
GetCurrentCharacterFromRepository(pair).Match(
none: () => playersDoneEmoting.Add(pair.UniqueID),
Expand Down

0 comments on commit ed65589

Please sign in to comment.