From 56b45c982b49a83a21e69a53b5ec00478b32675a Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Wed, 4 Jan 2012 22:09:05 +0800 Subject: [PATCH] eval_move in create_part if a particle already exists in the requested position To allow Lua tpt.create to create photons in glass --- src/powder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/powder.c b/src/powder.c index ca629cf5f..289c3a7fb 100644 --- a/src/powder.c +++ b/src/powder.c @@ -791,7 +791,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)) { if ((pmap[y][x]&0xFF)!=PT_SPAWN&&(pmap[y][x]&0xFF)!=PT_SPAWN2) {