Browse Source

Always call forceDebug to make sure the array is always cleaned.

Godzil 1 year ago
parent
commit
20d3d23152
1 changed files with 2 additions and 5 deletions
  1. 2 5
      source/app.cpp

+ 2 - 5
source/app.cpp

@@ -222,12 +222,9 @@ void application::render()
     }
 
 
-    if (this->showForceSum || this->showVelocity || this->showAllForces)
+    for(auto part: this->particles)
     {
-        for(auto part: this->particles)
-        {
-            part->forceDebug(this->showVelocity, this->showForceSum, this->showAllForces);
-        }
+        part->forceDebug(this->showVelocity, this->showForceSum, this->showAllForces);
     }
 
     graphics::draw::text(5, 5, 0x11FF22, "Wait time: %02.2f ms", waitTime.get());