Skip to content

Commit

Permalink
Stop engine and close when no active states exist
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Dec 30, 2024
1 parent 8656966 commit 9941858
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/ois/core/runner/SimulationEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ public void render() {
}
if (stateManager.update(dt)) {
stateManager.render();
} else {
// No Active states
stop();
}
} catch (Exception e) {
handleProgramException(e);
Expand Down

0 comments on commit 9941858

Please sign in to comment.