added missing guards

This commit is contained in:
Zeno Rogue 2019-10-12 19:09:53 +02:00
parent 58c1c04697
commit bf691001ab
2 changed files with 5 additions and 1 deletions

View File

@ -474,6 +474,7 @@ struct hrmap_crystal : hrmap_standard {
}
auto co = hcoords[h];
#if MAXMDIM >= 4
if(crystal3()) {
auto st = get_canonical(co);
auto co1 = co + st[d];
@ -485,6 +486,7 @@ struct hrmap_crystal : hrmap_standard {
return h1;
}
#endif
if(is_bi(cs, co)) {
heptspin hs(h, d);
@ -602,7 +604,9 @@ EX heptagon *get_heptagon_at(coord c) { return crystal_map()->get_heptagon_at(c,
EX coord get_coord(heptagon *h) { return crystal_map()->hcoords[h]; }
EX ldcoord get_ldcoord(cell *c) { return crystal_map()->get_coord(c); }
#if MAXMDIM >= 4
EX transmatrix get_adj(heptagon *h, int d) { return crystal_map()->adj(h, d); }
#endif
bool is_bi(crystal_structure& cs, coord co) {
for(int i=0; i<cs.dim; i++) if(co[i] & HALFSTEP) return true;

View File

@ -950,7 +950,6 @@ EX bool pseudohept(cell *c) {
}
return false;
}
#endif
EX void generate_cellrotations() {
auto &cr = cgi.cellrotations;
@ -978,6 +977,7 @@ EX void generate_cellrotations() {
}
}
#endif
#if 0
/* More precise, but very slow distance. Not used/optimized for now */