mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-20 06:03:01 +00:00
mapstream:: correctly save coxeter and subcube-based variations
This commit is contained in:
parent
09655ebf9f
commit
4aa0dcf2fa
@ -449,6 +449,12 @@ EX namespace mapstream {
|
||||
f.write(gp::param.second);
|
||||
}
|
||||
#endif
|
||||
if(variation == eVariation::coxeter) {
|
||||
f.write(reg3::coxeter_param);
|
||||
}
|
||||
if(is_subcube_based(variation )) {
|
||||
f.write(reg3::subcube_count);
|
||||
}
|
||||
#if CAP_FIELD
|
||||
if(geometry == gFieldQuotient) {
|
||||
using namespace fieldpattern;
|
||||
@ -535,6 +541,12 @@ EX namespace mapstream {
|
||||
f.read(gp::param.second);
|
||||
}
|
||||
#endif
|
||||
if(variation == eVariation::coxeter && vernum >= 0xA908) {
|
||||
f.read(reg3::coxeter_param);
|
||||
}
|
||||
if(is_subcube_based(variation) && vernum >= 0xA908) {
|
||||
f.read(reg3::subcube_count);
|
||||
}
|
||||
#if CAP_CRYSTAL
|
||||
if(cryst && vernum >= 10504) {
|
||||
int sides;
|
||||
|
Loading…
Reference in New Issue
Block a user