summaryrefslogtreecommitdiff
path: root/src/simulation
diff options
context:
space:
mode:
Diffstat (limited to 'src/simulation')
-rw-r--r--src/simulation/Simulation.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp
index f95a451..9c8bffd 100644
--- a/src/simulation/Simulation.cpp
+++ b/src/simulation/Simulation.cpp
@@ -4638,12 +4638,11 @@ void Simulation::update_particles()//doesn't update the particles themselves, bu
gravy = grav->gravy;
gravp = grav->gravp;
gravmap = grav->gravmap;
-
- if(gravWallChanged)
- {
- grav->gravity_mask();
- gravWallChanged = false;
- }
+ }
+ if(gravWallChanged)
+ {
+ grav->gravity_mask();
+ gravWallChanged = false;
}
if(emp_decor>0)
emp_decor -= emp_decor/25+2;