mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-31 19:51:45 +02:00
Remove blockair update in Air.cpp function to fix TTAN - solves issue #30
This commit is contained in:
@@ -40,11 +40,6 @@ void Air::update_airh(void)
|
|||||||
{
|
{
|
||||||
int x, y, i, j;
|
int x, y, i, j;
|
||||||
float odh, dh, dx, dy, f, tx, ty;
|
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
|
for (i=0; i<YRES/CELL; i++) //reduces pressure/velocity on the edges every frame
|
||||||
{
|
{
|
||||||
hv[i][0] = 295.15f;
|
hv[i][0] = 295.15f;
|
||||||
@@ -122,11 +117,6 @@ void Air::update_air(void)
|
|||||||
int x = 0, y = 0, i = 0, j = 0;
|
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;
|
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
|
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
|
for (i=0; i<YRES/CELL; i++) //reduces pressure/velocity on the edges every frame
|
||||||
|
Reference in New Issue
Block a user