Skip to content

Commit

Permalink
fix(quadtree): Fix max speed sometimes not growing the board fast enough
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Nov 14, 2024
1 parent 4212ffd commit 3dacf24
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions internal/quadtree/gosper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 3dacf24

Please sign in to comment.