Fix Pausing after every Update

Updates would pause when any change has happened, not when no change has happened.
This commit is contained in:
Unknown 2018-10-15 17:16:09 +02:00
parent c50e92fb19
commit 08155b70a5
1 changed files with 1 additions and 1 deletions

View File

@ -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