summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2012-01-15 14:02:01 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-01-25 13:33:20 (GMT)
commitedcf6d7b2f3a9ba26fb4f1d9c91a291753463f56 (patch)
treeebfd456ff4ca3dc6312da75c8c80c191714683fc /src
parentbdf277e68720cd09551a24c9d7f39d3f7d80e2d3 (diff)
downloadpowder-edcf6d7b2f3a9ba26fb4f1d9c91a291753463f56.zip
powder-edcf6d7b2f3a9ba26fb4f1d9c91a291753463f56.tar.gz
Whoops, eval_move returning 1 should not allow particle creation
Diffstat (limited to 'src')
-rw-r--r--src/powder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/powder.c b/src/powder.c
index d2e36b9..ca094aa 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)
{