summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-03 21:48:04 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-03 21:48:04 +0000
commitd0e164c2124ff90bca9eef4b06f9d2f0a9006964 (patch)
treebd53285d6ddd31e8073fdff22ece975e5e51e426 /crawl-ref/source/tilereg.cc
parent189cd2fc2491bde8c2efa508d808c67700b38b8d (diff)
downloadcrawl-ref-d0e164c2124ff90bca9eef4b06f9d2f0a9006964.tar.gz
crawl-ref-d0e164c2124ff90bca9eef4b06f9d2f0a9006964.zip
[1904556] Fixing duplicate cursor during teleport/blink
[2429406] Fixing targeting cursor appearing even if mouse hasn't moved. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8182 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tilereg.cc')
-rw-r--r--crawl-ref/source/tilereg.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/tilereg.cc b/crawl-ref/source/tilereg.cc
index ee97fc6089..e3ed46d1ba 100644
--- a/crawl-ref/source/tilereg.cc
+++ b/crawl-ref/source/tilereg.cc
@@ -972,7 +972,7 @@ void DungeonRegion::place_cursor(cursor_type type, const coord_def &gc)
// cursor next to the player to let them know that their
// spell/wand will only go one square.
if (mouse_control::current_mode() == MOUSE_MODE_TARGET_DIR
- && type == CURSOR_MOUSE)
+ && type == CURSOR_MOUSE && gc != NO_CURSOR)
{
coord_def delta = gc - you.pos();