summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/debug.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/debug.cc')
-rw-r--r--crawl-ref/source/debug.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/debug.cc b/crawl-ref/source/debug.cc
index 806be6e4ab..7ac71feebd 100644
--- a/crawl-ref/source/debug.cc
+++ b/crawl-ref/source/debug.cc
@@ -5090,6 +5090,13 @@ void debug_miscast( int target_index )
while (target->alive() && repeats-- > 0)
{
+ if (kbhit())
+ {
+ mpr("Key pressed, interrupting miscast testing.");
+ getchm();
+ break;
+ }
+
miscast->do_miscast();
if (level != 0)
_miscast_screen_update();