Commits

John Hsu committed 9184430

fix proper World::stepInc count (we were getting non-updates with World::StepWorld due to throttling). Removed old comment, not needed anaymore.

Comments (0)

Files changed (1)

gazebo/physics/World.cc

       // query timestep to allow dynamic time step size updates
       this->simTime += this->physicsEngine->GetStepTime();
       this->Update();
+
+      if (this->IsPaused() && this->stepInc > 0)
+        this->stepInc--;
     }
   }
 
-  // TODO: Fix timeout:  this belongs in simulator.cc
-  /*if (this->timeout > 0 && this->GetRealTime() > this->timeout)
-  {
-    this->stop = true;
-    break;
-  }*/
-
-  if (this->IsPaused() && this->stepInc > 0)
-    this->stepInc--;
-
   this->ProcessEntityMsgs();
   this->ProcessRequestMsgs();
   this->ProcessFactoryMsgs();