Prevent solid particles stacking in E-Hole

Such as occurs when cloning a solid in E-Hole
This commit is contained in:
jacksonmj 2012-05-21 21:15:13 +01:00
parent 8b20bfd764
commit 8ca13238d0

View File

@ -231,7 +231,7 @@ int eval_move(int pt, int nx, int ny, unsigned *rr)
return 0;
if (bmap[ny/CELL][nx/CELL]==WL_EWALL && !emap[ny/CELL][nx/CELL])
return 0;
if (bmap[ny/CELL][nx/CELL]==WL_EHOLE && !emap[ny/CELL][nx/CELL])
if (bmap[ny/CELL][nx/CELL]==WL_EHOLE && !emap[ny/CELL][nx/CELL] && !(ptypes[pt].properties&TYPE_SOLID) && !(ptypes[r&0xFF].properties&TYPE_SOLID))
return 2;
}
return result;