From b04f361c9430a3a3c29ef63a43884db0d168a808 Mon Sep 17 00:00:00 2001 From: arngo <27396817+arngo@users.noreply.github.com> Date: Sat, 18 Dec 2021 17:45:34 -0500 Subject: fix pause state --- app/tick.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/tick.rb b/app/tick.rb index 7539405..11a47a5 100644 --- a/app/tick.rb +++ b/app/tick.rb @@ -40,10 +40,10 @@ def tick args end if args.inputs.keyboard.keys[:down].include?(:space) if @pause - FF::Stg.remove FF::Scn::BoidRules + FF::Stg.add FF::Scn::BoidRules @pause = false else - FF::Stg.add FF::Scn::BoidRules + FF::Stg.remove FF::Scn::BoidRules @pause = true end end -- cgit v1.2.3