From 07f808790732854cd258d1e0d09ef9b3fd8cf142 Mon Sep 17 00:00:00 2001 From: cracker64 Date: Fri, 23 Sep 2011 10:17:41 -0400 Subject: Prevent water equalization from moving onto particles. diff --git a/src/powder.c b/src/powder.c index 591f650..a97c51d 100644 --- a/src/powder.c +++ b/src/powder.c @@ -2675,7 +2675,7 @@ int flood_water(int x, int y, int i, int originaly, int check) { parts[pmap[y][x]>>8].tmp2 = !check;//flag it as checked, maybe shouldn't use .tmp2 //check above, maybe around other sides too? - if ( ((y-1) > originaly) && eval_move(parts[i].type, x, y-1, NULL)) + if ( ((y-1) > originaly) && !pmap[y-1][x] && eval_move(parts[i].type, x, y-1, NULL)) { int oldx = (int)(parts[i].x + 0.5f); int oldy = (int)(parts[i].y + 0.5f); -- cgit v0.9.2-21-gd62e