TPT: Make TTAN block pressure when framestepping 58ea2b2acf
This commit is contained in:
parent
95a9b96dc9
commit
10f51cb586
@ -4025,17 +4025,12 @@ void Simulation::update_particles()//doesn't update the particles themselves, bu
|
||||
{
|
||||
if (emap[y][x])
|
||||
emap[y][x] --;
|
||||
air->bmap_blockair[y][x] = (bmap[y][x]==WL_WALL || bmap[y][x]==WL_WALLELEC || (bmap[y][x]==WL_EWALL && !emap[y][x]));
|
||||
air->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++)
|
||||
{
|
||||
air->bmap_blockair[y][x] = (bmap[y][x]==WL_WALL || bmap[y][x]==WL_WALLELEC || (bmap[y][x]==WL_EWALL && !emap[y][x]));
|
||||
air->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]));
|
||||
}
|
||||
|
||||
if(!sys_pause||framerender)
|
||||
update_particles_i(0, 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user