summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-29 10:52:38 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-29 10:52:38 +0000
commit5bafe6551f12b7df0b5fe8ffad2f5f4ab3836718 (patch)
tree570284c09b5d48dc955102ea9b12ed77639b4c01 /crawl-ref/source/spells1.cc
parent1acc5c3b399b756f29c5f458e915052f890c266c (diff)
downloadcrawl-ref-5bafe6551f12b7df0b5fe8ffad2f5f4ab3836718.tar.gz
crawl-ref-5bafe6551f12b7df0b5fe8ffad2f5f4ab3836718.zip
[1622126] Fixed shift+direction keys canceling the targeting prompt. Hopefully
this works on Windows and DOS, but I'm unsure. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@723 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r--crawl-ref/source/spells1.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index 38373820a5..5885526f29 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -72,6 +72,12 @@ int blink(void)
if (!beam.isValid)
{
+ if (!yesno("Are you sure you want to cancel this blink?",
+ false, 'n'))
+ {
+ mesclr();
+ continue;
+ }
canned_msg(MSG_OK);
return (-1); // early return {dlb}
}