From 5bb6b95fe71d33956491b98c29bf464a440ad221 Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 18 Apr 2022 22:40:41 +0200 Subject: Added toggle for base generator --- ExampleGenerator.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ExampleGenerator.cpp') 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(); -- cgit v1.1