1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-14 01:16:50 +00:00
This commit is contained in:
Zeno Rogue 2017-07-06 15:23:33 +02:00
parent afb32b2a9f
commit c46ab39d1e

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)