eating don't trigger autosave while resting
This commit is contained in:
@@ -465,7 +465,7 @@ void handle_rest(bool& need_redraw, bool& need_reprint) {
|
|||||||
pause(25);
|
pause(25);
|
||||||
univ.party.food -= 6;
|
univ.party.food -= 6;
|
||||||
while(i < 50) {
|
while(i < 50) {
|
||||||
increase_age();
|
increase_age(false);
|
||||||
if(get_ran(1,1,2) == 2)
|
if(get_ran(1,1,2) == 2)
|
||||||
do_monsters();
|
do_monsters();
|
||||||
if(get_ran(1,1,70) == 10)
|
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();
|
adjust_spell_menus();
|
||||||
}
|
}
|
||||||
|
|
||||||
void increase_age() {
|
void increase_age(bool eating_trigger_autosave) {
|
||||||
short how_many_short = 0,r1;
|
short how_many_short = 0,r1;
|
||||||
|
|
||||||
|
|
||||||
@@ -3200,7 +3200,7 @@ void increase_age() {
|
|||||||
else {
|
else {
|
||||||
play_sound(6);
|
play_sound(6);
|
||||||
add_string_to_buf("You eat.");
|
add_string_to_buf("You eat.");
|
||||||
try_auto_save("Eat");
|
if(eating_trigger_autosave) try_auto_save("Eat");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -29,7 +29,7 @@ void do_load();
|
|||||||
void post_load();
|
void post_load();
|
||||||
void do_save(bool save_as = false);
|
void do_save(bool save_as = false);
|
||||||
void do_abort();
|
void do_abort();
|
||||||
void increase_age();
|
void increase_age(bool eating_trigger_autosave = true);
|
||||||
void handle_hunting();
|
void handle_hunting();
|
||||||
void switch_pc(short which);
|
void switch_pc(short which);
|
||||||
void handle_drop_pc();
|
void handle_drop_pc();
|
||||||
|
Reference in New Issue
Block a user