From 08155b70a5ab0a7df15dffb999f473f075a5f4e2 Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 15 Oct 2018 17:16:09 +0200 Subject: [PATCH] Fix Pausing after every Update Updates would pause when any change has happened, not when no change has happened. --- lib/src/Engine.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/Engine.dart b/lib/src/Engine.dart index 9855d14..36ab89a 100644 --- a/lib/src/Engine.dart +++ b/lib/src/Engine.dart @@ -102,7 +102,7 @@ class Engine { /// If simulation should be advanced manually one time, prefer using step(). void update() { // TODO: create hasUpdated/hasAdvanced method in simulation to abstract actual updating away - if (_grid.update().length != 0) running = false; + if (_grid.update().length == 0) running = false; } /// Advances Logic One Update