mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	Record asteroids_generated and asteroid_orbs_generated in the saveline.
This commit is contained in:
		| @@ -447,7 +447,7 @@ EX namespace scores { | |||||||
| /** \brief the amount of boxes reserved for each hr::score item */ | /** \brief the amount of boxes reserved for each hr::score item */ | ||||||
| #define MAXBOX 500 | #define MAXBOX 500 | ||||||
| /** \brief currently used boxes in hr::score */ | /** \brief currently used boxes in hr::score */ | ||||||
| #define POSSCORE 416 | #define POSSCORE 418 | ||||||
| /** \brief a struct to keep local score from an earlier game */ | /** \brief a struct to keep local score from an earlier game */ | ||||||
| struct score { | struct score { | ||||||
|   /** \brief version used */ |   /** \brief version used */ | ||||||
| @@ -958,6 +958,8 @@ EX void applyBoxes() { | |||||||
|   applyBoxM(moAsteroid); |   applyBoxM(moAsteroid); | ||||||
|   applyBoxNum(items[itTreat]); |   applyBoxNum(items[itTreat]); | ||||||
|   applyBoxM(moVampire); |   applyBoxM(moVampire); | ||||||
|  |   applyBoxNum(asteroids_generated); | ||||||
|  |   applyBoxNum(asteroid_orbs_generated); | ||||||
|  |  | ||||||
|   if(POSSCORE != boxid) printf("ERROR: %d boxes\n", boxid); |   if(POSSCORE != boxid) printf("ERROR: %d boxes\n", boxid); | ||||||
|   if(isize(invorb)) { println(hlog, "ERROR: Orbs not taken into account"); exit(1); } |   if(isize(invorb)) { println(hlog, "ERROR: Orbs not taken into account"); exit(1); } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jacob Mandelson
					Jacob Mandelson