diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/powder.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/powder.c b/src/powder.c index 4724b7a..68e199b 100644 --- a/src/powder.c +++ b/src/powder.c @@ -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); |
