summaryrefslogtreecommitdiff
path: root/src/powder.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/powder.c')
-rw-r--r--src/powder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/powder.c b/src/powder.c
index e59fd89..829b856 100644
--- a/src/powder.c
+++ b/src/powder.c
@@ -1355,7 +1355,7 @@ void update_particles_i(pixel *vid, int start, int inc)
continue;
}
if (bmap[y/CELL][x/CELL]==WL_DETECT && emap[y/CELL][x/CELL]<8)
- set_emap(nx, ny);
+ set_emap(x/CELL, y/CELL);
vx[y/CELL][x/CELL] = vx[y/CELL][x/CELL]*ptypes[t].airloss + ptypes[t].airdrag*parts[i].vx;