1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-24 02:17:40 +00:00

fixed MAXMDIM guards

This commit is contained in:
Zeno Rogue
2019-11-03 14:19:11 +01:00
parent 02bb9d5ea5
commit 43bf7c5cfe
7 changed files with 28 additions and 17 deletions

View File

@@ -406,8 +406,10 @@ struct hrmap_crystal : hrmap_standard {
bool crystal3() { return WDIM == 3; }
hrmap_crystal() {
if(crystal3()) reg3::generate(), cs.dim = 4;
else cs.build();
#if MAXMDIM >= 4
if(crystal3()) reg3::generate(), cs.dim = 4; else
#endif
cs.build();
camelot_center = NULL;
}