diff options
Diffstat (limited to 'src/behaviour_system.cpp')
-rw-r--r-- | src/behaviour_system.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/behaviour_system.cpp b/src/behaviour_system.cpp index 6cd0b52..2d46205 100644 --- a/src/behaviour_system.cpp +++ b/src/behaviour_system.cpp | |||
@@ -5,6 +5,8 @@ | |||
5 | #include "direction.h" | 5 | #include "direction.h" |
6 | 6 | ||
7 | void BehaviourSystem::tick(double dt) { | 7 | void BehaviourSystem::tick(double dt) { |
8 | if (game_.isGameplayPaused()) return; | ||
9 | |||
8 | timer_.accumulate(dt); | 10 | timer_.accumulate(dt); |
9 | while (timer_.step()) { | 11 | while (timer_.step()) { |
10 | for (int spriteId : game_.getSprites()) { | 12 | for (int spriteId : game_.getSprites()) { |