Clear fire/persistent effects when clearing the simulation, fixes #136

This commit is contained in:
Simon Robertshaw 2012-08-20 20:49:00 +01:00
parent 1b75cbdcc9
commit 451a94a6ac

View File

@ -433,6 +433,7 @@ void GameModel::SetSave(SaveInfo * newSave)
sim->grav->stop_grav_async();
sim->clear_sim();
sim->SetEdgeMode(0);
ren->ClearAccumulation();
sim->Load(saveData);
}
notifySaveChanged();
@ -460,6 +461,8 @@ void GameModel::SetSaveFile(SaveFile * newSave)
sim->grav->stop_grav_async();
}
sim->clear_sim();
sim->SetEdgeMode(0);
ren->ClearAccumulation();
sim->Load(saveData);
}
@ -623,6 +626,7 @@ void GameModel::FrameStep(int frames)
void GameModel::ClearSimulation()
{
sim->clear_sim();
ren->ClearAccumulation();
}
void GameModel::SetStamp(GameSave * save)