diff options
Diffstat (limited to 'src/effect_system.cpp')
| -rw-r--r-- | src/effect_system.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
| diff --git a/src/effect_system.cpp b/src/effect_system.cpp index 74fc8f3..aeccebb 100644 --- a/src/effect_system.cpp +++ b/src/effect_system.cpp | |||
| @@ -1,6 +1,9 @@ | |||
| 1 | #include "effect_system.h" | 1 | #include "effect_system.h" |
| 2 | #include "game.h" | ||
| 2 | 3 | ||
| 3 | void EffectSystem::tick(double dt) { | 4 | void EffectSystem::tick(double dt) { |
| 5 | if (game_.isGameplayPaused()) return; | ||
| 6 | |||
| 4 | if (screenFade_ != screenFadeDest_) { | 7 | if (screenFade_ != screenFadeDest_) { |
| 5 | screenFadeThus_ += dt; | 8 | screenFadeThus_ += dt; |
| 6 | if (screenFadeThus_ >= screenFadeLength_) { | 9 | if (screenFadeThus_ >= screenFadeLength_) { |
