diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-03-04 21:04:18 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-03-29 20:41:39 +0200 |
commit | fc907a583d958c3eb87bbe82cd34ca986d781627 (patch) | |
tree | d7900cab6abe9249746e089c07d95957c0ea0a8c /src/traps.c | |
parent | 1cef2bec6cfe51855e53ec29fa5ea64d506eb086 (diff) |
Refactor: Remove duplicate code for autosaving.
Diffstat (limited to 'src/traps.c')
-rw-r--r-- | src/traps.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/traps.c b/src/traps.c index ed93aabe..1c8e36c9 100644 --- a/src/traps.c +++ b/src/traps.c @@ -848,12 +848,9 @@ bool_ player_activate_trap_type(s16b y, s16b x, object_type *i_ptr, s16b item) } /* Still alive and autosave enabled */ - if (autosave_l && (p_ptr->chp >= 0)) + if (p_ptr->chp >= 0) { - is_autosave = TRUE; - msg_print("Autosaving the game..."); - do_cmd_save_game(); - is_autosave = FALSE; + autosave_checkpoint(); } if (dungeon_flags1 & DF1_TOWER) dun_level--; |