diff options
Diffstat (limited to 'src/animation_system.cpp')
-rw-r--r-- | src/animation_system.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/animation_system.cpp b/src/animation_system.cpp index c43d0ca..d23eae2 100644 --- a/src/animation_system.cpp +++ b/src/animation_system.cpp | |||
@@ -91,6 +91,8 @@ void AnimationSystem::initSprite(int spriteId, std::string_view filename) { | |||
91 | } | 91 | } |
92 | 92 | ||
93 | void AnimationSystem::tick(double dt) { | 93 | void AnimationSystem::tick(double dt) { |
94 | if (game_.isGameplayPaused()) return; | ||
95 | |||
94 | animTimer_.accumulate(dt); | 96 | animTimer_.accumulate(dt); |
95 | while (animTimer_.step()) { | 97 | while (animTimer_.step()) { |
96 | for (Sprite& sprite : game_.getSprites() | game_.spriteView()) { | 98 | for (Sprite& sprite : game_.getSprites() | game_.spriteView()) { |