summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-30 18:30:43 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-30 18:30:43 +0000
commit019348774d4d0235e851a00ccb46559a24d2d779 (patch)
tree9b646fc6991e5c7ca17c504fea0a1e58a24e9190 /crawl-ref
parent29e15df630a0d761c1920bad0217f87263d3235d (diff)
downloadcrawl-ref-019348774d4d0235e851a00ccb46559a24d2d779.tar.gz
crawl-ref-019348774d4d0235e851a00ccb46559a24d2d779.zip
Treat attempt to blink onto your original location as a blink cancel attempt.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1132 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/spells1.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index 2c20e508c0..72c2748123 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -70,7 +70,7 @@ int blink(void)
direction(beam, DIR_TARGET, TARG_ANY);
- if (!beam.isValid)
+ if (!beam.isValid || coord_def(beam.tx, beam.ty) == you.pos())
{
if (!yesno("Are you sure you want to cancel this blink?",
false, 'n'))