diff options
| author | jacksonmj <mj-pt@jacksonmj.co.uk> | 2012-05-12 16:07:52 (GMT) |
|---|---|---|
| committer | jacksonmj <mj-pt@jacksonmj.co.uk> | 2012-05-12 16:07:52 (GMT) |
| commit | 58ea2b2acf2a959f286ed5ae996b6e6a74206e0d (patch) | |
| tree | fef82a5bd82f4337562ef4acc5259380ead7b0c8 /src | |
| parent | 137903f809f5bfe4f317d5ea5f156bd87e332bb1 (diff) | |
| download | powder-58ea2b2acf2a959f286ed5ae996b6e6a74206e0d.zip powder-58ea2b2acf2a959f286ed5ae996b6e6a74206e0d.tar.gz | |
Make TTAN block pressure when framestepping
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); |
