diff options
| author | Simon 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) |
| commit | 7c5e74410bb45b02eca2b9ff2073e67225bd00b7 (patch) | |
| tree | c08d164115b753e360017151150a427260e71e4e /src/simulation/Simulation.cpp | |
| parent | 6ae650d04c78eb8e560c39618f049d932d03988c (diff) | |
| download | powder-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.cpp | 7 |
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); |
