diff options
Diffstat (limited to 'src/simulation/Air.cpp')
| -rw-r--r-- | src/simulation/Air.cpp | 10 |
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 |
