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

added some guards for MAXMDIM >= 4 and CAP_SOLV

This commit is contained in:
Zeno Rogue
2021-03-30 11:27:48 +02:00
parent 1f939920d2
commit 5a73510c4f
22 changed files with 110 additions and 13 deletions

View File

@@ -735,6 +735,7 @@ EX namespace euc {
return;
}
}
#if MAXMDIM >= 4
if(twisted & 16) {
int period = T0[2][2];
transmatrix RotYZX = Zero;
@@ -767,7 +768,9 @@ EX namespace euc {
}
return;
}
#endif
if(WDIM == 3) {
#if MAXMDIM >= 4
auto& coo = x;
while(coo[2] >= T0[2][2]) {
coo[2] -= T0[2][2];
@@ -784,6 +787,7 @@ EX namespace euc {
for(int i: {0,1})
if(T0[i][i]) coo[i] = gmod(coo[i], T0[i][i]);
return;
#endif
}
else {
gp::loc coo = to_loc(x);