Whoops, eval_move returning 1 should not allow particle creation
This commit is contained in:
parent
bdf277e687
commit
edcf6d7b2f
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user