diff options
Diffstat (limited to 'src/spells1.c')
-rw-r--r-- | src/spells1.c | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/src/spells1.c b/src/spells1.c index fa2a846f..53686c5a 100644 --- a/src/spells1.c +++ b/src/spells1.c @@ -858,13 +858,7 @@ void teleport_player_level(void) { msg_print("You sink through the floor."); - if (autosave_l) - { - is_autosave = TRUE; - msg_print("Autosaving the game..."); - do_cmd_save_game(); - is_autosave = FALSE; - } + autosave_checkpoint(); dun_level++; @@ -875,13 +869,7 @@ void teleport_player_level(void) { msg_print("You rise up through the ceiling."); - if (autosave_l) - { - is_autosave = TRUE; - msg_print("Autosaving the game..."); - do_cmd_save_game(); - is_autosave = FALSE; - } + autosave_checkpoint(); dun_level--; @@ -892,13 +880,7 @@ void teleport_player_level(void) { msg_print("You rise up through the ceiling."); - if (autosave_l) - { - is_autosave = TRUE; - msg_print("Autosaving the game..."); - do_cmd_save_game(); - is_autosave = FALSE; - } + autosave_checkpoint(); dun_level--; @@ -909,13 +891,7 @@ void teleport_player_level(void) { msg_print("You sink through the floor."); - if (autosave_l) - { - is_autosave = TRUE; - msg_print("Autosaving the game..."); - do_cmd_save_game(); - is_autosave = FALSE; - } + autosave_checkpoint(); dun_level++; |