summaryrefslogtreecommitdiff
path: root/src/powder.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/powder.c')
-rw-r--r--src/powder.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/powder.c b/src/powder.c
index 9b4d101..3d5ed42 100644
--- a/src/powder.c
+++ b/src/powder.c
@@ -2778,6 +2778,13 @@ void update_particles(pixel *vid)//doesn't update the particles themselves, but
}
}
}
+
+ 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);