From 5362c56f7e1cdfc7c0c2486bde6bb86fa531b5c7 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Fri, 14 Dec 2012 13:50:36 -0500 Subject: [PATCH] update gravity wall zones whether or not newtonian gravity is on. Fixes #92 --- src/simulation/Simulation.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index f95a451d0..9c8bffded 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;