diff options
author | Paul Gilbert | 2015-05-30 11:42:21 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-05-30 11:42:21 -0400 |
commit | 17aeb5264921ca55f77d190d6ff146e9a54ee5b6 (patch) | |
tree | 6fbc14d57d6acd7c5ea2765389861aa7bde859f4 /engines/sherlock/scalpel/scalpel_user_interface.cpp | |
parent | 0cc5313689d980fc9855eba6bbdc973c7a9d9e96 (diff) | |
download | scummvm-rg350-17aeb5264921ca55f77d190d6ff146e9a54ee5b6.tar.gz scummvm-rg350-17aeb5264921ca55f77d190d6ff146e9a54ee5b6.tar.bz2 scummvm-rg350-17aeb5264921ca55f77d190d6ff146e9a54ee5b6.zip |
SHERLOCK: Fix non-interactive Scalpel demo
Diffstat (limited to 'engines/sherlock/scalpel/scalpel_user_interface.cpp')
-rw-r--r-- | engines/sherlock/scalpel/scalpel_user_interface.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/sherlock/scalpel/scalpel_user_interface.cpp b/engines/sherlock/scalpel/scalpel_user_interface.cpp index f9ec8bb1bb..69ab6ecb6b 100644 --- a/engines/sherlock/scalpel/scalpel_user_interface.cpp +++ b/engines/sherlock/scalpel/scalpel_user_interface.cpp @@ -84,8 +84,14 @@ const char *const MUSE[] = { ScalpelUserInterface::ScalpelUserInterface(SherlockEngine *vm): UserInterface(vm) { - _controls = new ImageFile("menu.all"); - _controlPanel = new ImageFile("controls.vgs"); + if (_vm->_interactiveFl) { + _controls = new ImageFile("menu.all"); + _controlPanel = new ImageFile("controls.vgs"); + } else { + _controls = nullptr; + _controlPanel = nullptr; + } + _keyPress = '\0'; _lookHelp = 0; _bgFound = 0; |