diff options
author | Neil Moore <neil@s-z.org> | 2013-08-10 04:17:46 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-08-10 04:28:57 -0400 |
commit | 47f5d088a5e46e198d379f3c96e5db0cc1ec4206 (patch) | |
tree | 02505ecf97e88f9293ead576b9d2cac55913c931 /crawl-ref/source/spl-selfench.cc | |
parent | 8dad8c8a6418051af0ef3214d88625742a2bf8e0 (diff) | |
download | crawl-ref-47f5d088a5e46e198d379f3c96e5db0cc1ec4206.tar.gz crawl-ref-47f5d088a5e46e198d379f3c96e5db0cc1ec4206.zip |
Let auto_list = false work with amnesia.
Diffstat (limited to 'crawl-ref/source/spl-selfench.cc')
-rw-r--r-- | crawl-ref/source/spl-selfench.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-selfench.cc b/crawl-ref/source/spl-selfench.cc index c5328e31c0..6f4c38a330 100644 --- a/crawl-ref/source/spl-selfench.cc +++ b/crawl-ref/source/spl-selfench.cc @@ -16,6 +16,7 @@ #include "libutil.h" #include "message.h" #include "misc.h" +#include "options.h" #include "religion.h" #include "shout.h" #include "spl-cast.h" @@ -278,7 +279,7 @@ int cast_selective_amnesia(string *pre_msg) // Pick a spell to forget. mpr("Forget which spell ([?*] list [ESC] exit)? ", MSGCH_PROMPT); - keyin = list_spells(false, false, false); + keyin = Options.auto_list ? list_spells(false, false, false) : get_ch(); redraw_screen(); while (true) |