diff options
author | Neil Moore <neil@s-z.org> | 2012-12-31 04:44:27 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2012-12-31 04:44:27 -0500 |
commit | 9da19725963eddf97a56096263bea067635de80e (patch) | |
tree | 8bf6ebdb2e9c9fea1682c93026612da22ebf997e /crawl-ref/source/spl-transloc.cc | |
parent | e2ba925e33bb066d7668f743dc63ac1bd7e2be2f (diff) | |
download | crawl-ref-9da19725963eddf97a56096263bea067635de80e.tar.gz crawl-ref-9da19725963eddf97a56096263bea067635de80e.zip |
Avoid an infinite loop when HUPping at the scblink prompt.
Diffstat (limited to 'crawl-ref/source/spl-transloc.cc')
-rw-r--r-- | crawl-ref/source/spl-transloc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-transloc.cc b/crawl-ref/source/spl-transloc.cc index 7402e3a59e..00c4ec1fd1 100644 --- a/crawl-ref/source/spl-transloc.cc +++ b/crawl-ref/source/spl-transloc.cc @@ -1042,7 +1042,7 @@ spret_type cast_semi_controlled_blink(int pow, bool cheap_cancel, bool fail) args.restricts = DIR_DIR; args.mode = TARG_ANY; - while (1) + while (!crawl_state.seen_hups) { mpr("Which direction? [ESC to cancel]", MSGCH_PROMPT); direction(bmove, args); |