mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
bugfix
This commit is contained in:
parent
afb32b2a9f
commit
c46ab39d1e
3
cell.cpp
3
cell.cpp
@ -1431,7 +1431,8 @@ int celldistance(cell *c1, cell *c2) {
|
|||||||
|
|
||||||
if(sphere || quotient == 1) {
|
if(sphere || quotient == 1) {
|
||||||
celllister cl(c1, 64, 1000, c2);
|
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)
|
if(quotient == 2)
|
||||||
|
Loading…
Reference in New Issue
Block a user