This commit is contained in:
Zeno Rogue 2017-07-06 15:23:33 +02:00
parent afb32b2a9f
commit c46ab39d1e
1 changed files with 2 additions and 1 deletions

View File

@ -1431,7 +1431,8 @@ int celldistance(cell *c1, cell *c2) {
if(sphere || quotient == 1) {
celllister cl(c1, 64, 1000, c2);
return cl.getdist(c2);
for(int i=0; i<size(cl.lst); i++)
if(cl.lst[i] == c2) return cl.dists[i];
}
if(quotient == 2)