1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-20 15:44:48 +00:00

loading/saving irregular maps to config and log (and recreate automatically)H

This commit is contained in:
Zeno Rogue
2018-07-17 14:28:49 +02:00
parent 9fc4e5524f
commit 566c466b66
6 changed files with 95 additions and 53 deletions

View File

@@ -300,7 +300,7 @@ bool havesave = true;
#if CAP_SAVE
#define MAXBOX 500
#define POSSCORE 344 // update this when new boxes are added!
#define POSSCORE 346 // update this when new boxes are added!
struct score {
string ver;
@@ -693,6 +693,9 @@ void applyBoxes() {
applyBoxBool(gp::on);
applyBox(gp::param.first);
applyBox(gp::param.second);
applyBoxBool(irr::on);
applyBox(irr::cellcount);
if(POSSCORE != boxid) printf("ERROR: %d boxes\n", boxid);
}