diff options
| author | jacob1 <jfu614@gmail.com> | 2012-12-18 00:41:32 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2012-12-18 00:41:32 (GMT) |
| commit | 510cbd63b5ed92e86b5c133605d246951442c84b (patch) | |
| tree | 8456e15ec43c810e063ad499e8bd3336e7a75acf /src/simulation/Simulation.cpp | |
| parent | f08481a88e083c4cda2465dd74bf442915c395ae (diff) | |
| download | powder-510cbd63b5ed92e86b5c133605d246951442c84b.zip powder-510cbd63b5ed92e86b5c133605d246951442c84b.tar.gz | |
fix GLAS and QRTZ sometimes breaking when pasting stamps or resetting pressure
Diffstat (limited to 'src/simulation/Simulation.cpp')
| -rw-r--r-- | src/simulation/Simulation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 21f8109..afb50c5 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -136,6 +136,10 @@ int Simulation::Load(int fullX, int fullY, GameSave * save) } } } + if (parts[i].pavg[0] || parts[i].pavg[1]) + { + parts[i].pavg[0] = parts[i].pavg[1] = 0; + } } parts_lastActiveIndex = NPART-1; force_stacking_check = 1; |
