mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-04 18:52:51 +00:00
added missing guards
This commit is contained in:
parent
58c1c04697
commit
bf691001ab
@ -474,6 +474,7 @@ struct hrmap_crystal : hrmap_standard {
|
|||||||
}
|
}
|
||||||
auto co = hcoords[h];
|
auto co = hcoords[h];
|
||||||
|
|
||||||
|
#if MAXMDIM >= 4
|
||||||
if(crystal3()) {
|
if(crystal3()) {
|
||||||
auto st = get_canonical(co);
|
auto st = get_canonical(co);
|
||||||
auto co1 = co + st[d];
|
auto co1 = co + st[d];
|
||||||
@ -485,6 +486,7 @@ struct hrmap_crystal : hrmap_standard {
|
|||||||
|
|
||||||
return h1;
|
return h1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if(is_bi(cs, co)) {
|
if(is_bi(cs, co)) {
|
||||||
heptspin hs(h, d);
|
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 coord get_coord(heptagon *h) { return crystal_map()->hcoords[h]; }
|
||||||
EX ldcoord get_ldcoord(cell *c) { return crystal_map()->get_coord(c); }
|
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); }
|
EX transmatrix get_adj(heptagon *h, int d) { return crystal_map()->adj(h, d); }
|
||||||
|
#endif
|
||||||
|
|
||||||
bool is_bi(crystal_structure& cs, coord co) {
|
bool is_bi(crystal_structure& cs, coord co) {
|
||||||
for(int i=0; i<cs.dim; i++) if(co[i] & HALFSTEP) return true;
|
for(int i=0; i<cs.dim; i++) if(co[i] & HALFSTEP) return true;
|
||||||
|
2
reg3.cpp
2
reg3.cpp
@ -950,7 +950,6 @@ EX bool pseudohept(cell *c) {
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
EX void generate_cellrotations() {
|
EX void generate_cellrotations() {
|
||||||
auto &cr = cgi.cellrotations;
|
auto &cr = cgi.cellrotations;
|
||||||
@ -978,6 +977,7 @@ EX void generate_cellrotations() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
/* More precise, but very slow distance. Not used/optimized for now */
|
/* More precise, but very slow distance. Not used/optimized for now */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user