mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-08 01:33:02 +00:00
fixed distance computation in 3D fieldquotient
This commit is contained in:
6
cell.cpp
6
cell.cpp
@@ -1064,8 +1064,10 @@ EX int celldistance(cell *c1, cell *c2) {
|
||||
if(hybri) return hybrid::celldistance(c1, c2);
|
||||
|
||||
#if CAP_FIELD
|
||||
if(geometry == gFieldQuotient && !GOLDBERG)
|
||||
return currfp.getdist(fieldpattern::fieldval(c1), fieldpattern::fieldval(c2));
|
||||
if(geometry == gFieldQuotient) {
|
||||
int d = fieldpattern::field_celldistance(c1, c2);
|
||||
if(d != DISTANCE_UNKNOWN) return d;
|
||||
}
|
||||
#endif
|
||||
|
||||
if(bounded) return bounded_celldistance(c1, c2);
|
||||
|
||||
Reference in New Issue
Block a user