From cb30cbcce7709899829ec4a5b07e8ea9b7c8a30e Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Thu, 22 Sep 2011 21:42:01 +0100 Subject: [PATCH] Fix typo allowing liquids to teleport through solids --- src/powder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/powder.c b/src/powder.c index 1b526e943..e8b875bdc 100644 --- a/src/powder.c +++ b/src/powder.c @@ -2249,7 +2249,7 @@ killed: ny = (int)(parts[i].y+0.5f); break; } - if ((pmap[fin_y][j]&0xFF)!=t || (bmap[fin_y/CELL][j/CELL] && bmap[fin_y/CELL][j/CELL]!=WL_STREAM)) + if ((pmap[clear_y][j]&0xFF)!=t || (bmap[clear_y/CELL][j/CELL] && bmap[clear_y/CELL][j/CELL]!=WL_STREAM)) break; } if (parts[i].vy>0)