summaryrefslogtreecommitdiff
path: root/src/powder.c
diff options
context:
space:
mode:
authorjacksonmj <jacksonmj@jacksonmj.none>2011-01-11 14:22:24 (GMT)
committer jacksonmj <jacksonmj@jacksonmj.none>2011-01-11 21:17:02 (GMT)
commitdaa6af0cc25076d9484d1e1a776853943231f5a7 (patch)
treea187b78d11aba690c59cd27322fa57ceaa1876ba /src/powder.c
parent4006bdf4c22564e916092d6d63ae63d1fa6bc5b5 (diff)
downloadpowder-daa6af0cc25076d9484d1e1a776853943231f5a7.zip
powder-daa6af0cc25076d9484d1e1a776853943231f5a7.tar.gz
Small fixes and cleanup
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;