summaryrefslogtreecommitdiff
path: root/src/simulation/Air.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-07-29 00:40:42 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-07-29 00:40:42 (GMT)
commit0b3724215e72176ddc8b1532c2dcedeef9ee6c28 (patch)
tree2e17778bd7d55d3ddb9ac9e04b6323f436da002f /src/simulation/Air.cpp
parent6cc4648929a8f4fc45531e4637f19b6b2e45f0fd (diff)
downloadpowder-0b3724215e72176ddc8b1532c2dcedeef9ee6c28.zip
powder-0b3724215e72176ddc8b1532c2dcedeef9ee6c28.tar.gz
Remove blockair update in Air.cpp function to fix TTAN - solves issue #30
Diffstat (limited to 'src/simulation/Air.cpp')
-rw-r--r--src/simulation/Air.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/simulation/Air.cpp b/src/simulation/Air.cpp
index 3941836..ff3ea6e 100644
--- a/src/simulation/Air.cpp
+++ b/src/simulation/Air.cpp
@@ -40,11 +40,6 @@ void Air::update_airh(void)
{
int x, y, i, j;
float odh, dh, dx, dy, f, tx, ty;
- for (y=0; y<YRES/CELL; y++)
- for (x=0; x<XRES/CELL; x++)
- {
- 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 (i=0; i<YRES/CELL; i++) //reduces pressure/velocity on the edges every frame
{
hv[i][0] = 295.15f;
@@ -122,11 +117,6 @@ void Air::update_air(void)
int x = 0, y = 0, i = 0, j = 0;
float dp = 0.0f, dx = 0.0f, dy = 0.0f, f = 0.0f, tx = 0.0f, ty = 0.0f;
- for (y=0; y<YRES/CELL; y++)
- for (x=0; x<XRES/CELL; x++)
- {
- bmap_blockair[y][x] = (bmap[y][x]==WL_WALL || bmap[y][x]==WL_WALLELEC || (bmap[y][x]==WL_EWALL && !emap[y][x]));
- }
if (airMode != 4) { //airMode 4 is no air/pressure update
for (i=0; i<YRES/CELL; i++) //reduces pressure/velocity on the edges every frame