Whoops, eval_move returning 1 should not allow particle creation

This commit is contained in:
jacksonmj 2012-01-15 22:02:01 +08:00 committed by Simon Robertshaw
parent bdf277e687
commit edcf6d7b2f

View File

@ -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)
{