From 71a6654c036dc4ebb96c67dddc23594f4699cbb2 Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Thu, 24 Feb 2011 00:57:13 +0000 Subject: [PATCH] Fix particles displaced by liquids moving to overlapping positions --- src/powder.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/powder.c b/src/powder.c index 2e5aef0bb..bb773858e 100644 --- a/src/powder.c +++ b/src/powder.c @@ -1988,7 +1988,9 @@ killed: if (try_move(i, x, y, j, clear_y)) { parts[i].x = clear_xf+(j-clear_x); + parts[i].y = clear_yf; nx = j; + ny = clear_y; s = 1; break; } @@ -2000,11 +2002,11 @@ killed: else r = -1; if (s) - for (j=clear_y+r; j>=0 && j=clear_y-rt && j=0 && j=ny-rt && j