Skip to content

Commit

Permalink
add log message when particle debugging is advanced due to unpause
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Sep 5, 2016
1 parent 8de12d6 commit 8a130aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/game/GameModel.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 8a130aa

Please sign in to comment.