aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/keyboard.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2009-06-06 17:40:56 +0000
committerEugene Sandulenko2009-06-06 17:40:56 +0000
commit26d8b2bb727376bdd5fb93f74b2595edcedc087d (patch)
treed858304787380e33a886e92b3fe70c09083e3d57 /engines/agi/keyboard.cpp
parent3ba873c72bbd2546583987ade7f8ab517ef8502a (diff)
downloadscummvm-rg350-26d8b2bb727376bdd5fb93f74b2595edcedc087d.tar.gz
scummvm-rg350-26d8b2bb727376bdd5fb93f74b2595edcedc087d.tar.bz2
scummvm-rg350-26d8b2bb727376bdd5fb93f74b2595edcedc087d.zip
Fix bug #2721940: "AGI: Gold Rush! Restart Option differs from original"
svn-id: r41243
Diffstat (limited to 'engines/agi/keyboard.cpp')
-rw-r--r--engines/agi/keyboard.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agi/keyboard.cpp b/engines/agi/keyboard.cpp
index b498466442..bc30224918 100644
--- a/engines/agi/keyboard.cpp
+++ b/engines/agi/keyboard.cpp
@@ -385,7 +385,7 @@ int AgiEngine::waitKey() {
}
debugC(3, kDebugLevelInput, "waiting...");
- while (!(shouldQuit() || restartGame || getflag(fRestoreJustRan))) {
+ while (!(shouldQuit() || _restartGame || getflag(fRestoreJustRan))) {
_gfx->pollTimer(); // msdos driver -> does nothing
key = doPollKeyboard();
if (key == KEY_ENTER || key == KEY_ESCAPE || key == BUTTON_LEFT)
@@ -408,7 +408,7 @@ int AgiEngine::waitAnyKey() {
}
debugC(3, kDebugLevelInput, "waiting... (any key)");
- while (!(shouldQuit() || restartGame)) {
+ while (!(shouldQuit() || _restartGame)) {
_gfx->pollTimer(); // msdos driver -> does nothing
key = doPollKeyboard();
if (key)