From edcf6d7b2f3a9ba26fb4f1d9c91a291753463f56 Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Sun, 15 Jan 2012 22:02:01 +0800 Subject: [PATCH] Whoops, eval_move returning 1 should not allow particle creation --- src/powder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/powder.c b/src/powder.c index d2e36b95d..ca094aaa0 100644 --- a/src/powder.c +++ b/src/powder.c @@ -798,7 +798,7 @@ inline int create_part(int p, int x, int y, int tv)//the function for creating a return -1; if (p==-1)//creating from anything but brush { - if ((pmap[y][x] || bmap[y/CELL][x/CELL]) && !eval_move(t, x, y, NULL)) + if ((pmap[y][x] || bmap[y/CELL][x/CELL]) && eval_move(t, x, y, NULL)!=2) { if ((pmap[y][x]&0xFF)!=PT_SPAWN&&(pmap[y][x]&0xFF)!=PT_SPAWN2) {