diff options
Diffstat (limited to 'src/behaviour_system.cpp')
-rw-r--r-- | src/behaviour_system.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/behaviour_system.cpp b/src/behaviour_system.cpp index 8f17329..6cd0b52 100644 --- a/src/behaviour_system.cpp +++ b/src/behaviour_system.cpp | |||
@@ -9,7 +9,7 @@ void BehaviourSystem::tick(double dt) { | |||
9 | while (timer_.step()) { | 9 | while (timer_.step()) { |
10 | for (int spriteId : game_.getSprites()) { | 10 | for (int spriteId : game_.getSprites()) { |
11 | Sprite& sprite = game_.getSprite(spriteId); | 11 | Sprite& sprite = game_.getSprite(spriteId); |
12 | if (sprite.wander) { | 12 | if (sprite.wander && !sprite.paused) { |
13 | // 75% chance of changing what's happening | 13 | // 75% chance of changing what's happening |
14 | if (std::bernoulli_distribution(0.75)(game_.getRng())) { | 14 | if (std::bernoulli_distribution(0.75)(game_.getRng())) { |
15 | // 50% chance of choosing a direction or stopping | 15 | // 50% chance of choosing a direction or stopping |