Permalink
Browse files

add log message when particle debugging is advanced due to unpause

  • Loading branch information...
jacob1 committed Sep 5, 2016
1 parent 8de12d6 commit 8a130aaab4fa826cfe6682d6e3954508a8286890
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/gui/game/GameModel.cpp
@@ -843,11 +843,14 @@ void GameModel::SetUser(User user)
void GameModel::SetPaused(bool pauseState)
{
if(!pauseState && sim->debug_currentParticle > 0)
if (!pauseState && sim->debug_currentParticle > 0)
{
std::stringstream logmessage;
logmessage << "Updated particles from #" << sim->debug_currentParticle << " to end due to unpause";
sim->UpdateParticles(sim->debug_currentParticle, NPART);
sim->AfterSim();
sim->debug_currentParticle = 0;
Log(logmessage.str(), false);
}
sim->sys_pause = pauseState?1:0;

0 comments on commit 8a130aa

Please sign in to comment.