Skip to content

Commit

Permalink
fix bug in particles:reset where warmup was ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmaclarty committed Nov 21, 2016
1 parent 72999a1 commit 0319737
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/particles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ function am.particles2d(opts)
set_verts()

local dt = 1/60
warmup_time = opts.warmup_time or 0
while warmup_time > 0 do
update(dt)
warmup_time = warmup_time - dt
Expand Down

0 comments on commit 0319737

Please sign in to comment.