aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2013-08-21 22:12:20 +0200
committerStrangerke2013-08-21 22:12:20 +0200
commit9c3cefa6f0ec801a99c697e796b985e14012379e (patch)
tree949079858c7262f22aebeb8c3d88413e388b3de8
parentd0ce04c96824ab0c2957e33ceb830fb1d9caf8eb (diff)
downloadscummvm-rg350-9c3cefa6f0ec801a99c697e796b985e14012379e.tar.gz
scummvm-rg350-9c3cefa6f0ec801a99c697e796b985e14012379e.tar.bz2
scummvm-rg350-9c3cefa6f0ec801a99c697e796b985e14012379e.zip
MORTEVIELLE: Silent CID 1063229
-rw-r--r--engines/mortevielle/utils.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/mortevielle/utils.cpp b/engines/mortevielle/utils.cpp
index de184bf254..5ca29d849c 100644
--- a/engines/mortevielle/utils.cpp
+++ b/engines/mortevielle/utils.cpp
@@ -67,9 +67,10 @@ bool MortevielleEngine::keyPressed() {
* @remarks Originally called 'get_ch'
*/
int MortevielleEngine::getChar() {
+ bool end = false;
// If there isn't any pending keypress, wait until there is
- while (!shouldQuit() && _keypresses.empty()) {
- keyPressed();
+ while (!shouldQuit() && !end) {
+ end = keyPressed();
}
// Return the top keypress