summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-27 01:46:57 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-27 01:46:57 +0000
commit2d5ae333b773baae8f2745fb07814be601cc2c0f (patch)
tree2a96143bf5588a2aed71c18f3b7d6d2c379d7fe9 /crawl-ref
parent8a6d053b734af03992d4b39d79e11f20b8d1932a (diff)
downloadcrawl-ref-2d5ae333b773baae8f2745fb07814be601cc2c0f.tar.gz
crawl-ref-2d5ae333b773baae8f2745fb07814be601cc2c0f.zip
[2021064] Fixing awful bug where autoexplore (and others) couldn't be cancelled.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7032 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/libgui.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/libgui.cc b/crawl-ref/source/libgui.cc
index 9b32df2dec..87839a9c78 100644
--- a/crawl-ref/source/libgui.cc
+++ b/crawl-ref/source/libgui.cc
@@ -350,6 +350,7 @@ int kbhit()
{
// Look for the presence of any keyboard events in the queue.
SDL_Event store;
+ SDL_PumpEvents();
int count = SDL_PeepEvents(&store, 1, SDL_PEEKEVENT,
SDL_EVENTMASK(SDL_KEYDOWN));