diff options
Diffstat (limited to 'ExampleGenerator.cpp')
-rw-r--r-- | ExampleGenerator.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ExampleGenerator.cpp b/ExampleGenerator.cpp index dc9a6b9..5bdade8 100644 --- a/ExampleGenerator.cpp +++ b/ExampleGenerator.cpp @@ -26,6 +26,8 @@ ExampleGenerator::ExampleGenerator(ConstantVelocityBullet::Vector& bullets) : void ExampleGenerator::update(const float dt) { + if (!m_enabled) + return; m_delay += dt; if (m_delay > m_interval) { const auto pos = position(); |