mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-02 20:42:36 +02:00
Make TTAN block pressure when framestepping
This commit is contained in:
@@ -2785,16 +2785,11 @@ void update_particles(pixel *vid)//doesn't update the particles themselves, but
|
|||||||
{
|
{
|
||||||
if (emap[y][x])
|
if (emap[y][x])
|
||||||
emap[y][x] --;
|
emap[y][x] --;
|
||||||
|
bmap_blockair[y][x] = (bmap[y][x]==WL_WALL || bmap[y][x]==WL_WALLELEC || (bmap[y][x]==WL_EWALL && !emap[y][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 (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]));
|
|
||||||
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]));
|
|
||||||
}
|
|
||||||
|
|
||||||
update_particles_i(vid, 0, 1);
|
update_particles_i(vid, 0, 1);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user