diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-12-29 03:40:24 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-12-29 03:40:24 +0100 |
commit | 758438fb9570afe569d1fc428d0c6dcbc71ec5f6 (patch) | |
tree | 06a1d36faf41b1ea8944b710b5ecebf4bd7f3fee /crawl-ref/source/teleport.cc | |
parent | a686ed9f01008e00904f6be2fedd1bff41e661c7 (diff) | |
download | crawl-ref-758438fb9570afe569d1fc428d0c6dcbc71ec5f6.tar.gz crawl-ref-758438fb9570afe569d1fc428d0c6dcbc71ec5f6.zip |
Handle non-item sources of -TELE.
Currently, that's only sprint, and not for blink.
This fixes relevant spells and abilities being usable but then doing nothing.
Diffstat (limited to 'crawl-ref/source/teleport.cc')
-rw-r--r-- | crawl-ref/source/teleport.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/teleport.cc b/crawl-ref/source/teleport.cc index aa026b691b..f5198fa460 100644 --- a/crawl-ref/source/teleport.cc +++ b/crawl-ref/source/teleport.cc @@ -32,7 +32,7 @@ bool player::blink_to(const coord_def& dest, bool quiet) if (dest == pos()) return false; - if (item_blocks_teleport(true, true)) + if (you.no_tele(true, true, true)) { if (!quiet) canned_msg(MSG_STRANGE_STASIS); |