summaryrefslogtreecommitdiff
path: root/src/powers.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-03-04 21:04:18 +0100
committerBardur Arantsson <bardur@scientician.net>2012-03-29 20:41:39 +0200
commitfc907a583d958c3eb87bbe82cd34ca986d781627 (patch)
treed7900cab6abe9249746e089c07d95957c0ea0a8c /src/powers.c
parent1cef2bec6cfe51855e53ec29fa5ea64d506eb086 (diff)
Refactor: Remove duplicate code for autosaving.
Diffstat (limited to 'src/powers.c')
-rw-r--r--src/powers.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/powers.c b/src/powers.c
index b38b671f..afaf7431 100644
--- a/src/powers.c
+++ b/src/powers.c
@@ -651,13 +651,8 @@ static void power_activate(int power)
case PWR_WRECK_WORLD:
msg_print("The power of Eru Iluvatar flows through you!");
msg_print("The world changes!");
- if (autosave_l)
- {
- is_autosave = TRUE;
- msg_print("Autosaving the game...");
- do_cmd_save_game();
- is_autosave = FALSE;
- }
+
+ autosave_checkpoint();
/* Leaving */
p_ptr->leaving = TRUE;
break;