diff options
| author | jacob1 <jfu614@gmail.com> | 2012-12-14 18:50:36 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2012-12-14 18:50:36 (GMT) |
| commit | 5362c56f7e1cdfc7c0c2486bde6bb86fa531b5c7 (patch) | |
| tree | c9f7d5d4004c057eb10ef886c0f41bf4b79c769e /src/simulation/Simulation.cpp | |
| parent | 05fc39e40faa817cdbf3e50de94d28a5ef9349dc (diff) | |
| download | powder-5362c56f7e1cdfc7c0c2486bde6bb86fa531b5c7.zip powder-5362c56f7e1cdfc7c0c2486bde6bb86fa531b5c7.tar.gz | |
update gravity wall zones whether or not newtonian gravity is on. Fixes #92
Diffstat (limited to 'src/simulation/Simulation.cpp')
| -rw-r--r-- | src/simulation/Simulation.cpp | 11 |
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; |
