summaryrefslogtreecommitdiffhomepage
path: root/ExampleGenerator.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-18 22:40:41 +0200
committerAki <please@ignore.pl>2022-04-18 22:40:41 +0200
commit5bb6b95fe71d33956491b98c29bf464a440ad221 (patch)
treed084a1214548ca7c3e9cf167c7462966d0f7fc7f /ExampleGenerator.cpp
parent9dc6e5dcc108cd887891756a54748aab62f19626 (diff)
downloadbullethell2022-5bb6b95fe71d33956491b98c29bf464a440ad221.zip
bullethell2022-5bb6b95fe71d33956491b98c29bf464a440ad221.tar.gz
bullethell2022-5bb6b95fe71d33956491b98c29bf464a440ad221.tar.bz2
Added toggle for base generator
Diffstat (limited to 'ExampleGenerator.cpp')
-rw-r--r--ExampleGenerator.cpp2
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();