From 3011367eb09249d94462c769da2e708e8a9aa930 Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Thu, 24 Feb 2011 08:57:13 +0800 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 11215d2d0..98fedb275 100644 --- a/src/powder.c +++ b/src/powder.c @@ -1990,7 +1990,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; } @@ -2002,11 +2004,11 @@ killed: else r = -1; if (s) - for (j=clear_y+r; j>=0 && j=clear_y-rt && j=0 && j=ny-rt && j