aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorEugene Sandulenko2010-06-15 10:32:44 +0000
committerEugene Sandulenko2010-06-15 10:32:44 +0000
commit81870dba5804b776044f89112976d0110b5c0695 (patch)
treecf76424648a18eb0f85e03a12fc2a9670662b4d4 /engines/agi
parent88421532aa2fc34fda1a940a4ba994f96e324574 (diff)
downloadscummvm-rg350-81870dba5804b776044f89112976d0110b5c0695.tar.gz
scummvm-rg350-81870dba5804b776044f89112976d0110b5c0695.tar.bz2
scummvm-rg350-81870dba5804b776044f89112976d0110b5c0695.zip
AGI: Fix bug #2825273.
Bug #2825273: "AGI: KQ4: Dwarf sequence". Always allow ESC to work in KQ4. svn-id: r49746
Diffstat (limited to 'engines/agi')
-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 056df8f026..f99d5728be 100644
--- a/engines/agi/keyboard.cpp
+++ b/engines/agi/keyboard.cpp
@@ -104,10 +104,10 @@ int AgiEngine::handleController(int key) {
VtEntry *v = &_game.viewTable[0];
int i;
- // AGI 3.149 games and The Black Cauldron need KEY_ESCAPE to use menus
+ // AGI 3.149 games, The Black Cauldron and King's Quest 4 need KEY_ESCAPE to use menus
// Games with the GF_ESCPAUSE flag need KEY_ESCAPE to pause the game
if (key == 0 ||
- (key == KEY_ESCAPE && getVersion() != 0x3149 && getGameID() != GID_BC && !(getFeatures() & GF_ESCPAUSE)) )
+ (key == KEY_ESCAPE && getVersion() != 0x3149 && getGameID() != GID_BC && getGameID() != GID_KQ4 && !(getFeatures() & GF_ESCPAUSE)) )
return false;
if ((getGameID() == GID_MH1 || getGameID() == GID_MH2) && (key == KEY_ENTER) &&