eating don't trigger autosave while resting

This commit is contained in:
2025-03-02 18:06:22 -06:00
committed by Celtic Minstrel
parent 27e76e5ffb
commit dad1342cab
2 changed files with 4 additions and 4 deletions

View File

@@ -465,7 +465,7 @@ void handle_rest(bool& need_redraw, bool& need_reprint) {
pause(25);
univ.party.food -= 6;
while(i < 50) {
increase_age();
increase_age(false);
if(get_ran(1,1,2) == 2)
do_monsters();
if(get_ran(1,1,70) == 10)
@@ -3072,7 +3072,7 @@ void do_rest(long length, int hp_restore, int mp_restore) {
adjust_spell_menus();
}
void increase_age() {
void increase_age(bool eating_trigger_autosave) {
short how_many_short = 0,r1;
@@ -3200,7 +3200,7 @@ void increase_age() {
else {
play_sound(6);
add_string_to_buf("You eat.");
try_auto_save("Eat");
if(eating_trigger_autosave) try_auto_save("Eat");
}
}

View File

@@ -29,7 +29,7 @@ void do_load();
void post_load();
void do_save(bool save_as = false);
void do_abort();
void increase_age();
void increase_age(bool eating_trigger_autosave = true);
void handle_hunting();
void switch_pc(short which);
void handle_drop_pc();