[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
TOF5WRGWVEQNDJAXWDOJ3HSVL5FBWI5HFJMFIB2M3VL7JI2JERWAC
SIDH2P7NBIG5KEOE27XHD3ZT2NQ2OJZFN6VZXWNWYFFY5YVXSSVQC
Q3B3UVMYEVC4YJUPYVSNTR4DJH4E6J4JJDHZNT5LNOCHCPPMEMXAC
HSRRNAU5UAYC6B6IQWGJPFROMZBTJICPCH6DJVZDHDTAGOQ6IOYAC
TJRYL3NXPW5IUGEV3YOC7JYWEXCZDBFPLT4AUG4P227WVKVB72ZAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
&& type == CURSOR_MOUSE)
&& type == CURSOR_MOUSE && gc != NO_CURSOR)
#ifdef USE_TILE // Force update of mouse cursor to direction-compatible location. tiles.place_cursor(CURSOR_MOUSE, tiles.get_cursor());#endif
#ifdef USE_TILE
// Force update of mouse cursor to direction-compatible location.
tiles.place_cursor(CURSOR_MOUSE, tiles.get_cursor());
#endif
// This shouldn't happen. continue;
// This shouldn't happen.
continue;
tiles.place_cursor(CURSOR_MOUSE, gc); delta = tiles.get_cursor() - you.pos(); ASSERT(delta.x >= -1 && delta.x <= 1); ASSERT(delta.y >= -1 && delta.y <= 1);
tiles.place_cursor(CURSOR_MOUSE, gc);
delta = tiles.get_cursor() - you.pos();
ASSERT(delta.x >= -1 && delta.x <= 1);
ASSERT(delta.y >= -1 && delta.y <= 1);
#ifdef USE_TILE tiles.place_cursor(CURSOR_MOUSE, Region::NO_CURSOR);#endif
tiles.place_cursor(CURSOR_MOUSE, Region::NO_CURSOR);