summaryrefslogtreecommitdiff
path: root/src/simulation/Simulation.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-06-12 17:16:40 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-06-12 17:16:40 (GMT)
commit7c5e74410bb45b02eca2b9ff2073e67225bd00b7 (patch)
treec08d164115b753e360017151150a427260e71e4e /src/simulation/Simulation.cpp
parent6ae650d04c78eb8e560c39618f049d932d03988c (diff)
downloadpowder-7c5e74410bb45b02eca2b9ff2073e67225bd00b7.zip
powder-7c5e74410bb45b02eca2b9ff2073e67225bd00b7.tar.gz
TPT: New element: Titanium, absorbs some neutrons, acts as a solid wall to air d7fa0b139e
Diffstat (limited to 'src/simulation/Simulation.cpp')
-rw-r--r--src/simulation/Simulation.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp
index 1cedb5c..395bc65 100644
--- a/src/simulation/Simulation.cpp
+++ b/src/simulation/Simulation.cpp
@@ -4029,6 +4029,13 @@ void Simulation::update_particles()//doesn't update the particles themselves, bu
}
}
+ 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);