1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

fixed distance computation in periodic product spaces (racing in H2xE no longer freezes)

This commit is contained in:
Zeno Rogue 2020-07-28 00:42:02 +02:00
parent 1c2606c36f
commit 33647a56c2

View File

@ -1428,7 +1428,7 @@ EX namespace hybrid {
if(w1.second == w2.second) { if(w1.second == w2.second) {
int d = PIU(hr::celldistance(w1.first, w2.first)); int d = PIU(hr::celldistance(w1.first, w2.first));
a = min(s+d, a); a = min(s+d, a);
b = max(s-d, a); b = max(s-d, b);
} }
c = c->cmove(c1->type-1); s++; c = c->cmove(c1->type-1); s++;
} }