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

map editor now can save irregular maps (also should save modes too)

This commit is contained in:
Zeno Rogue
2024-03-23 21:21:16 +01:00
parent e9941d29d3
commit 3791daf9e3
2 changed files with 82 additions and 4 deletions

View File

@@ -491,6 +491,9 @@ EX namespace mapstream {
f.write(gp::param.second);
}
#endif
#if CAP_IRR
if(IRREGULAR) irr::save_map_bin(f);
#endif
#if MAXMDIM >= 4
if(variation == eVariation::coxeter) {
f.write(reg3::coxeter_param);
@@ -587,6 +590,9 @@ EX namespace mapstream {
f.read(gp::param.second);
}
#endif
#if CAP_IRR
if(IRREGULAR) { irr::load_map_full(f); stop_game(); }
#endif
#if MAXMDIM >= 4
if(variation == eVariation::coxeter && vernum >= 0xA908) {
f.read(reg3::coxeter_param);