From 1d1741d3184fa338c84538b2d3d1ad094bddad86 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sat, 28 Feb 2009 15:53:10 +0000 Subject: 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 --- crawl-ref/source/libw32c.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crawl-ref/source/libw32c.cc') diff --git a/crawl-ref/source/libw32c.cc b/crawl-ref/source/libw32c.cc index af2fcad235..40d94ea467 100644 --- a/crawl-ref/source/libw32c.cc +++ b/crawl-ref/source/libw32c.cc @@ -68,6 +68,7 @@ REVISION("$Rev$"); #include "cio.h" #include "defines.h" #include "libutil.h" +#include "message.h" #include "state.h" #include "stuff.h" #include "version.h" @@ -835,6 +836,7 @@ static int w32_proc_mouse_event(const MOUSE_EVENT_RECORD &mer) int getch_ck(void) { + flush_prev_message(); INPUT_RECORD ir; DWORD nread; int key = 0; -- cgit v1.2.3-54-g00ecf