Skip to content
Snippets Groups Projects
Commit c577176e authored by Anthony Noir's avatar Anthony Noir
Browse files

check runable before step

parent 920455d2
No related branches found
No related tags found
No related merge requests found
Pipeline #79253 failed
......@@ -66,6 +66,9 @@ void Simulation::reset() {
}
void Simulation::step() {
if(!canRun) {
return;
}
hist.pushGrid(automaton.getGrid());
automaton.runOnce();
automaton.getNeighborhoodRule()->step();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment