mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
fixed distance computation in periodic product spaces (racing in H2xE no longer freezes)
This commit is contained in:
parent
1c2606c36f
commit
33647a56c2
@ -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++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user