diff --git a/src/simulation/Air.cpp b/src/simulation/Air.cpp index 5221ffcc7..6f0e18672 100644 --- a/src/simulation/Air.cpp +++ b/src/simulation/Air.cpp @@ -235,17 +235,9 @@ void Air::update_air(void) dp += pv[y][x]*f; } - if (dx*advDistanceMult<=1.0f && dy*advDistanceMult<=1.0f) - { - tx = x - dx*advDistanceMult; - ty = y - dy*advDistanceMult; - } - else if (bmap_blockair[y][x]) - { - tx = x; - ty = y; - } - else + tx = x - dx*advDistanceMult; + ty = y - dy*advDistanceMult; + if ((dx*advDistanceMult>1.0f || dy*advDistanceMult>1.0f) && (tx>=2 && tx=2 && tyabs(dy)) @@ -284,8 +276,8 @@ void Air::update_air(void) j = (int)ty; tx -= i; ty -= j; - if (i>=2 && i=2 && j=2 && i<=XRES/CELL-3 && + j>=2 && j<=YRES/CELL-3) { dx *= 1.0f - AIR_VADV; dy *= 1.0f - AIR_VADV;