Commit c577176e authored by Anthony Noir's avatar Anthony Noir
Browse files

check runable before step

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