1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

fixed distance computation in Nil

This commit is contained in:
Zeno Rogue 2019-10-05 18:54:45 +02:00
parent 5a4f936769
commit cbd8c77636

View File

@ -1016,7 +1016,7 @@ EX int celldistance(cell *c1, cell *c2) {
if(cryst) return crystal::precise_distance(c1, c2);
#endif
if(masterless || archimedean || quotient || solnih || (penrose && euclid) || experimental || sl2) {
if(masterless || archimedean || quotient || solnih || (penrose && euclid) || experimental || sl2 || nil) {
if(saved_distances.count(make_pair(c1,c2)))
return saved_distances[make_pair(c1,c2)];