Fix Pausing after every Update
Updates would pause when any change has happened, not when no change has happened.
This commit is contained in:
parent
c50e92fb19
commit
08155b70a5
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ class Engine {
|
||||||
/// If simulation should be advanced manually one time, prefer using step().
|
/// If simulation should be advanced manually one time, prefer using step().
|
||||||
void update() {
|
void update() {
|
||||||
// TODO: create hasUpdated/hasAdvanced method in simulation to abstract actual updating away
|
// 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
|
/// Advances Logic One Update
|
||||||
|
|
Loading…
Reference in a new issue