1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-30 01:07:57 +00:00

added missing MAXMDIM guards

This commit is contained in:
Zeno Rogue
2022-02-17 21:00:10 +01:00
parent 4394502e3e
commit 67a19d93bb
8 changed files with 45 additions and 2 deletions

View File

@@ -373,12 +373,16 @@ EX namespace fake {
transmatrix ray_iadj(cell *c, int i) override {
if(WDIM == 2)
return to_other_side(get_corner(c, i), get_corner(c, i+1));
#if MAXMDIM >= 4
if(PURE) return iadj(c, i);
auto& v = get_cellshape(c).faces_local[i];
hyperpoint h =
project_on_triangle(v[0], v[1], v[2]);
transmatrix T = rspintox(h);
return T * xpush(-2*hdist0(h)) * spintox(h);
#else
return Id;
#endif
}
};