Make TTAN block pressure when framestepping
This commit is contained in:
parent
137903f809
commit
58ea2b2acf
@ -2785,16 +2785,11 @@ void update_particles(pixel *vid)//doesn't update the particles themselves, but
|
||||
{
|
||||
if (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);
|
||||
|
||||
|
Reference in New Issue
Block a user