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

added MAXMDIM guards in various places

This commit is contained in:
Zeno Rogue
2023-04-15 01:18:47 +02:00
parent 804c3897b8
commit e63feddb7c
4 changed files with 36 additions and 5 deletions

View File

@@ -870,7 +870,11 @@ bincode get_bincode(hyperpoint h) {
case gcHyperbolic:
return acd_bin(hypot_d(3, h));
case gcSphere: {
#if MAXMDIM >= 4
return acd_bin(h[0]) + acd_bin(h[1]) * sY + acd_bin(h[2]) * sZ + acd_bin(h[3]) * sT;
#else
return 0;
#endif
}
}
return 0;