From 5bafe6551f12b7df0b5fe8ffad2f5f4ab3836718 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Fri, 29 Dec 2006 10:52:38 +0000 Subject: [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 --- crawl-ref/source/spells1.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crawl-ref/source/spells1.cc') 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} } -- cgit v1.2.3-54-g00ecf