TPT: Prevent solid particles stacking in E-Hole

This commit is contained in:
Simon Robertshaw 2012-06-13 01:06:44 +01:00
parent 59920c1a62
commit a4d156fc6b

View File

@ -1865,7 +1865,7 @@ int Simulation::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] && !(elements[pt].Properties&TYPE_SOLID) && !(elements[r&0xFF].Properties&TYPE_SOLID))
return 2;
}
return result;