1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-11 18:00:34 +00:00

field distance is known only in PURE and BITRUNCATED

This commit is contained in:
Zeno Rogue 2020-10-06 21:08:06 +02:00
parent f5eff4e225
commit 311ee10cf1

View File

@ -1108,7 +1108,7 @@ EX int celldistance(cell *c1, cell *c2) {
if(hybri) return hybrid::celldistance(c1, c2); if(hybri) return hybrid::celldistance(c1, c2);
#if CAP_FIELD #if CAP_FIELD
if(geometry == gFieldQuotient) { if(geometry == gFieldQuotient && (PURE || BITRUNCATED)) {
int d = fieldpattern::field_celldistance(c1, c2); int d = fieldpattern::field_celldistance(c1, c2);
if(d != DISTANCE_UNKNOWN) return d; if(d != DISTANCE_UNKNOWN) return d;
} }