summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorarngo <[email protected]>2021-12-18 17:45:34 -0500
committerarngo <[email protected]>2021-12-18 17:45:34 -0500
commitb04f361c9430a3a3c29ef63a43884db0d168a808 (patch)
tree6d07556d67c97d4ae2d6351e877ba6b8b0e7ca3c
parent509f53c9bca30de88af6f12c371ca637a9a4f9a3 (diff)
downloadSteelWings-b04f361c9430a3a3c29ef63a43884db0d168a808.tar.gz
SteelWings-b04f361c9430a3a3c29ef63a43884db0d168a808.zip
fix pause state
-rw-r--r--app/tick.rb4
1 files 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