diff --git a/src/simulation/Air.cpp b/src/simulation/Air.cpp index 1478a8ba2..718bd6da4 100644 --- a/src/simulation/Air.cpp +++ b/src/simulation/Air.cpp @@ -145,14 +145,14 @@ void Air::update_air(void) pv[i][2] = pv[i][2]*0.8f; pv[i][XRES/CELL-2] = pv[i][XRES/CELL-2]*0.8f; pv[i][XRES/CELL-1] = pv[i][XRES/CELL-1]*0.8f; - vx[i][0] = vx[i][1]*0.9f; - vx[i][1] = vx[i][2]*0.9f; - vx[i][XRES/CELL-2] = vx[i][XRES/CELL-3]*0.9f; - vx[i][XRES/CELL-1] = vx[i][XRES/CELL-2]*0.9f; - vy[i][0] = vy[i][1]*0.9f; - vy[i][1] = vy[i][2]*0.9f; - vy[i][XRES/CELL-2] = vy[i][XRES/CELL-3]*0.9f; - vy[i][XRES/CELL-1] = vy[i][XRES/CELL-2]*0.9f; + vx[i][0] = vx[i][0]*0.9f; + vx[i][1] = vx[i][1]*0.9f; + vx[i][XRES/CELL-2] = vx[i][XRES/CELL-2]*0.9f; + vx[i][XRES/CELL-1] = vx[i][XRES/CELL-1]*0.9f; + vy[i][0] = vy[i][0]*0.9f; + vy[i][1] = vy[i][1]*0.9f; + vy[i][XRES/CELL-2] = vy[i][XRES/CELL-2]*0.9f; + vy[i][XRES/CELL-1] = vy[i][XRES/CELL-1]*0.9f; } for (i=0; i