Commit afa3f68f authored by TheNumbat's avatar TheNumbat
Browse files

fix 0 particle/s

parent 59ff78b6
...@@ -121,6 +121,7 @@ void Scene_Particles::step(const PT::BVH<PT::Object>& scene, float dt) { ...@@ -121,6 +121,7 @@ void Scene_Particles::step(const PT::BVH<PT::Object>& scene, float dt) {
float cos = std::cos(Radians(opt.angle) / 2.0f); float cos = std::cos(Radians(opt.angle) / 2.0f);
if(opt.pps > 0.0f) {
double cooldown = 1.0 / opt.pps; double cooldown = 1.0 / opt.pps;
while(particle_cooldown <= 0.0f) { while(particle_cooldown <= 0.0f) {
...@@ -143,6 +144,8 @@ void Scene_Particles::step(const PT::BVH<PT::Object>& scene, float dt) { ...@@ -143,6 +144,8 @@ void Scene_Particles::step(const PT::BVH<PT::Object>& scene, float dt) {
} }
particle_cooldown -= dt; particle_cooldown -= dt;
}
particles = std::move(next); particles = std::move(next);
} }
......
Markdown is supported
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