aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2010-09-21 20:51:45 +0000
committerTorbjörn Andersson2010-09-21 20:51:45 +0000
commitc63553c234c84f27554bbf28ba3d878587cc8aef (patch)
treee2ea64bbe738a33970ed06dc97efc6ec6618bbc2
parenteb5ede13c3e3acce29d488107bbd59fbd210d067 (diff)
downloadscummvm-rg350-c63553c234c84f27554bbf28ba3d878587cc8aef.tar.gz
scummvm-rg350-c63553c234c84f27554bbf28ba3d878587cc8aef.tar.bz2
scummvm-rg350-c63553c234c84f27554bbf28ba3d878587cc8aef.zip
DRASCULA: Keep keyboard buffer flushed while waiting for conversation
Otherwise buffered-up key presses can cause dialog to be skipped once the player finally picks a conversation option. svn-id: r52850
-rw-r--r--engines/drascula/converse.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/drascula/converse.cpp b/engines/drascula/converse.cpp
index 8fecb682fc..d0906fdf55 100644
--- a/engines/drascula/converse.cpp
+++ b/engines/drascula/converse.cpp
@@ -211,6 +211,7 @@ void DrasculaEngine::converse(int index) {
}
updateEvents();
+ flushKeyBuffer();
phrase1_bottom = 8 * print_abc_opc(phrase1, 2, game1);
phrase2_bottom = phrase1_bottom + 8 * print_abc_opc(phrase2, phrase1_bottom + 2, game2);