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-02-28 15:53:10 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-28 15:53:10 +0000
commit1d1741d3184fa338c84538b2d3d1ad094bddad86 (patch)
treec74cc3c6350c13a95e4f186a9937579629d27473 /crawl-ref/source/tilesdl.cc
parent918d9df900b861c8b34b7bb4be9f7d53538e7b47 (diff)
downloadcrawl-ref-1d1741d3184fa338c84538b2d3d1ad094bddad86.tar.gz
crawl-ref-1d1741d3184fa338c84538b2d3d1ad094bddad86.zip
Flush messages, just in case, in the two definitions of getch_ck() that
don't use getch(), for Tiles and win32. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9280 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tilesdl.cc')
-rw-r--r--crawl-ref/source/tilesdl.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/tilesdl.cc b/crawl-ref/source/tilesdl.cc
index 8f7b0a2b68..b8a7a47d20 100644
--- a/crawl-ref/source/tilesdl.cc
+++ b/crawl-ref/source/tilesdl.cc
@@ -6,6 +6,7 @@ REVISION("$Rev$");
#include "items.h"
#include "itemprop.h"
#include "files.h"
+#include "message.h"
#include "mon-util.h"
#include "player.h"
#include "randart.h"
@@ -717,6 +718,7 @@ struct cursor_loc
int TilesFramework::getch_ck()
{
+ flush_prev_message();
SDL_Event event;
cursor_loc cur_loc;
cursor_loc tip_loc;