From a626ede2bf3d8f91a8b8d1879f30dfb9123b8a2c Mon Sep 17 00:00:00 2001 From: Jacob Mandelson Date: Tue, 27 Feb 2024 21:30:33 -0800 Subject: [PATCH] Record the amount of revolver ammunition in save file. --- system.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system.cpp b/system.cpp index ec0c8fa9..8433c567 100644 --- a/system.cpp +++ b/system.cpp @@ -444,7 +444,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 411 +#define POSSCORE 412 /** \brief a struct to keep local score from an earlier game */ struct score { /** \brief version used */ @@ -948,6 +948,7 @@ EX void applyBoxes() { list_invorb(); applyBoxNum(items[itCrossbow]); + applyBoxNum(items[itRevolver]); if(POSSCORE != boxid) printf("ERROR: %d boxes\n", boxid); if(isize(invorb)) { println(hlog, "ERROR: Orbs not taken into account"); exit(1); }