Record asteroids_generated and asteroid_orbs_generated in the saveline.

This commit is contained in:
Jacob Mandelson 2024-04-13 15:42:11 -07:00
parent fbea2d91ce
commit d756224f8d
1 changed files with 3 additions and 1 deletions

View File

@ -447,7 +447,7 @@ EX namespace scores {
/** \brief the amount of boxes reserved for each hr::score item */
#define MAXBOX 500
/** \brief currently used boxes in hr::score */
#define POSSCORE 416
#define POSSCORE 418
/** \brief a struct to keep local score from an earlier game */
struct score {
/** \brief version used */
@ -958,6 +958,8 @@ EX void applyBoxes() {
applyBoxM(moAsteroid);
applyBoxNum(items[itTreat]);
applyBoxM(moVampire);
applyBoxNum(asteroids_generated);
applyBoxNum(asteroid_orbs_generated);
if(POSSCORE != boxid) printf("ERROR: %d boxes\n", boxid);
if(isize(invorb)) { println(hlog, "ERROR: Orbs not taken into account"); exit(1); }