summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjacksonmj <jacksonmj@jacksonmj.none>2011-02-13 21:43:19 (GMT)
committer FacialTurd <simon@hardwired.org.uk>2011-02-18 23:06:21 (GMT)
commitdab9f85024b8adcfdcec28c7651c20f5b344ac2e (patch)
tree74db659178300281e8afd605bbdfbbcbdd6df097 /src
parent7c123cdb00427c8a1b0070c134cf17d2f8b313ee (diff)
downloadpowder-dab9f85024b8adcfdcec28c7651c20f5b344ac2e.zip
powder-dab9f85024b8adcfdcec28c7651c20f5b344ac2e.tar.gz
Fix incorrect liquids movement
Diffstat (limited to 'src')
-rw-r--r--src/powder.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/powder.c b/src/powder.c
index dc36054..c302a82 100644
--- a/src/powder.c
+++ b/src/powder.c
@@ -253,6 +253,7 @@ int try_move(int i, int x, int y, int nx, int ny)
if (parts[e].type == PT_PHOT)
return 1;
+ if ((pmap[ny][nx]>>8)==e) pmap[ny][nx] = 0;
parts[e].x += x-nx;
parts[e].y += y-ny;
pmap[(int)(parts[e].y+0.5f)][(int)(parts[e].x+0.5f)] = (e<<8)|parts[e].type;