diff --git a/internal/quadtree/gosper.go b/internal/quadtree/gosper.go index 2ec3dc6..1b373dc 100644 --- a/internal/quadtree/gosper.go +++ b/internal/quadtree/gosper.go @@ -41,11 +41,10 @@ func (g *Gosper) Step(r *rule.Rule, steps uint64) { g.steps++ g.generation += steps - if !g.cells.IsEdgesEmpty() { - g.cells = g.cells.grow() - } - for range steps { + if !g.cells.IsEdgesEmpty() { + g.cells = g.cells.grow() + } g.cells = g.cells.grow().step(r) } }