summaryrefslogtreecommitdiff
path: root/src/powder.c
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2012-01-04 14:09:05 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-01-05 00:46:11 (GMT)
commit56b45c982b49a83a21e69a53b5ec00478b32675a (patch)
tree4be740144b2df5f040a70de96f913315860978f4 /src/powder.c
parent6bd8c4c3cd657a71519636f97f5fde3f999d092e (diff)
downloadpowder-56b45c982b49a83a21e69a53b5ec00478b32675a.zip
powder-56b45c982b49a83a21e69a53b5ec00478b32675a.tar.gz
eval_move in create_part if a particle already exists in the requested position
To allow Lua tpt.create to create photons in glass
Diffstat (limited to 'src/powder.c')
-rw-r--r--src/powder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/powder.c b/src/powder.c
index ca629cf..289c3a7 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)
{