From 0ed78b3e9b6010b91d329e65d129ee6de297b7a6 Mon Sep 17 00:00:00 2001 From: ennewalker Date: Sat, 26 Jul 2008 16:07:29 +0000 Subject: Tiles fix to turn off mouse cursor once x-mode is done. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6692 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/directn.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/directn.cc') diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc index 22e77a4540..194930de3d 100644 --- a/crawl-ref/source/directn.cc +++ b/crawl-ref/source/directn.cc @@ -52,7 +52,10 @@ #include "stuff.h" #include "spells4.h" #include "stash.h" -#include "tiles.h" +#ifdef USE_TILE + #include "tiles.h" + #include "tilereg.h" +#endif #include "terrain.h" #include "traps.h" #include "travel.h" @@ -1219,6 +1222,10 @@ void direction(dist& moves, targeting_type restricts, // We need this for directional explosions, otherwise they'll explode one // square away from the player. _extend_move_to_edge(moves); + +#ifdef USE_TILE + tiles.place_cursor(CURSOR_MOUSE, Region::NO_CURSOR); +#endif } std::string get_terse_square_desc(const coord_def &gc) -- cgit v1.2.3-54-g00ecf