Skip to content

Commit

Permalink
Fix death animation happening too quickly
Browse files Browse the repository at this point in the history
Bug was introduced in commit 2ceeff5
  • Loading branch information
ethanmoffat committed May 9, 2023
1 parent 859365f commit 57e1ca7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -155,7 +155,7 @@ private void UpdateDeadCharacters()
none: () => _characterStateCache.AddDeathStartTime(character.ID),
some: actionTime =>
{
if ((_fixedTimeStepRepository.TickCount - actionTime.ActionTick) >= 1) // prior value was 2ms; ticks are 12ms
if ((_fixedTimeStepRepository.TickCount - actionTime.ActionTick) >= 200) // 200 ticks * 10ms = 2 seconds
{
_characterStateCache.RemoveDeathStartTime(character.ID);
_characterStateCache.RemoveCharacterState(character.ID);
Expand Down

0 comments on commit 57e1ca7

Please sign in to comment.