summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilesdl.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-18 21:03:49 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-18 21:03:49 +0000
commitd120c8b8553ad8e36a20a63cfe597b2f1eafceef (patch)
treec170fbfc0014f991bbf539c65384a6bf9709fbcc /crawl-ref/source/tilesdl.cc
parent92f29fb38841f8645a3e3ca9d2ad0f3fa32267db (diff)
downloadcrawl-ref-d120c8b8553ad8e36a20a63cfe597b2f1eafceef.tar.gz
crawl-ref-d120c8b8553ad8e36a20a63cfe597b2f1eafceef.zip
Another step on the way to player doll customization. Including some
predefined doll settings in dolls.txt, so players can actually use this. TODO: Save choice back into file. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9999 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tilesdl.cc')
-rw-r--r--crawl-ref/source/tilesdl.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/tilesdl.cc b/crawl-ref/source/tilesdl.cc
index 22d6f4d1e8..54b9749dc2 100644
--- a/crawl-ref/source/tilesdl.cc
+++ b/crawl-ref/source/tilesdl.cc
@@ -743,7 +743,12 @@ int TilesFramework::getch_ck()
int key = 0;
- const unsigned int ticks_per_redraw = 100;
+ // When moving the mouse via cursor when targeting update more often.
+ // For beams, the beam drawing already handles this, and when not targeting
+ // the normal drawing routines handle it.
+ const unsigned int ticks_per_redraw
+ = (mouse_control::current_mode() == MOUSE_MODE_TARGET ? 50 : 100);
+
unsigned int last_redraw_tick = 0;
unsigned int res = Options.tile_tooltip_ms;