summaryrefslogtreecommitdiff
path: root/src/simulation/Simulation.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-06-12 17:22:25 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-06-12 17:22:25 (GMT)
commit10f51cb586d2a1846ab395e76b0b33a2693ddf50 (patch)
tree68a44c923629b2dc01ecc9a63466966541cab0a6 /src/simulation/Simulation.cpp
parent95a9b96dc9ce652f8e4411199adafd248dab314b (diff)
downloadpowder-10f51cb586d2a1846ab395e76b0b33a2693ddf50.zip
powder-10f51cb586d2a1846ab395e76b0b33a2693ddf50.tar.gz
TPT: Make TTAN block pressure when framestepping 58ea2b2acf
Diffstat (limited to 'src/simulation/Simulation.cpp')
-rw-r--r--src/simulation/Simulation.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp
index 395bc65..30b2fcc 100644
--- a/src/simulation/Simulation.cpp
+++ b/src/simulation/Simulation.cpp
@@ -4025,17 +4025,12 @@ void Simulation::update_particles()//doesn't update the particles themselves, bu
{
if (emap[y][x])
emap[y][x] --;
+ air->bmap_blockair[y][x] = (bmap[y][x]==WL_WALL || bmap[y][x]==WL_WALLELEC || (bmap[y][x]==WL_EWALL && !emap[y][x]));
+ air->bmap_blockairh[y][x] = (bmap[y][x]==WL_WALL || bmap[y][x]==WL_WALLELEC || bmap[y][x]==WL_GRAV || (bmap[y][x]==WL_EWALL && !emap[y][x]));
}
}
}
- for (y=0; y<YRES/CELL; y++)
- for (x=0; x<XRES/CELL; x++)
- {
- air->bmap_blockair[y][x] = (bmap[y][x]==WL_WALL || bmap[y][x]==WL_WALLELEC || (bmap[y][x]==WL_EWALL && !emap[y][x]));
- air->bmap_blockairh[y][x] = (bmap[y][x]==WL_WALL || bmap[y][x]==WL_WALLELEC || bmap[y][x]==WL_GRAV || (bmap[y][x]==WL_EWALL && !emap[y][x]));
- }
-
if(!sys_pause||framerender)
update_particles_i(0, 1);