summaryrefslogtreecommitdiff
path: root/src/simulation/Simulation.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-27 12:32:17 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-27 12:32:17 (GMT)
commit0ca680f4c8585642b7201d07a3632ed276e5794a (patch)
treea75193ec7599209f24b5b488081cc61609b1eb2d /src/simulation/Simulation.cpp
parentebc411667550a0fbebc8ed9ab983b53b2f1c5f5f (diff)
downloadpowder-0ca680f4c8585642b7201d07a3632ed276e5794a.zip
powder-0ca680f4c8585642b7201d07a3632ed276e5794a.tar.gz
Enable decorations in renderer for local save items, disable for server save previews.
Diffstat (limited to 'src/simulation/Simulation.cpp')
-rw-r--r--src/simulation/Simulation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp
index 450f6d3..cb9b654 100644
--- a/src/simulation/Simulation.cpp
+++ b/src/simulation/Simulation.cpp
@@ -238,6 +238,7 @@ Snapshot * Simulation::CreateSnapshot()
void Simulation::Restore(const Snapshot & snap)
{
+ parts_lastActiveIndex = NPART-1;
std::copy(snap.AirPressure.begin(), snap.AirPressure.end(), &pv[0][0]);
std::copy(snap.AirVelocityX.begin(), snap.AirVelocityX.end(), &vx[0][0]);
std::copy(snap.AirVelocityY.begin(), snap.AirVelocityY.end(), &vy[0][0]);