aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/builtin.cpp
diff options
context:
space:
mode:
authorSimei Yin2018-04-15 20:21:04 +0200
committerSimei Yin2018-04-15 22:10:41 +0200
commit756a1096d8f07bf8dec93be126f8b702a884daa3 (patch)
tree96af05942e36eaf6a6c0b41b1d68e61d79838aaf /engines/sludge/builtin.cpp
parent91a1bbdb3e72a61a16810a9aa031e2c43a9f5e56 (diff)
downloadscummvm-rg350-756a1096d8f07bf8dec93be126f8b702a884daa3.tar.gz
scummvm-rg350-756a1096d8f07bf8dec93be126f8b702a884daa3.tar.bz2
scummvm-rg350-756a1096d8f07bf8dec93be126f8b702a884daa3.zip
SLUDGE: Remove unused global variable captureAllKeys
Diffstat (limited to 'engines/sludge/builtin.cpp')
-rw-r--r--engines/sludge/builtin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sludge/builtin.cpp b/engines/sludge/builtin.cpp
index d6cfbb53fe..8cba903d5c 100644
--- a/engines/sludge/builtin.cpp
+++ b/engines/sludge/builtin.cpp
@@ -60,7 +60,6 @@ Variable *launchResult = NULL;
extern int lastFramesPerSecond, thumbWidth, thumbHeight;
extern bool allowAnyFilename;
-extern bool captureAllKeys;
extern VariableStack *noStack;
extern StatusStuff *nowStatus;
extern ScreenRegion *overRegion;
@@ -1991,9 +1990,10 @@ builtIn(transitionLevel) {
builtIn(captureAllKeys) {
UNUSEDALL
- captureAllKeys = getBoolean(fun->stack->thisVar);
+ // This built-in function doesn't have any effect any more, we capture all keys by default
+ bool captureAllKeysDeprecated = getBoolean(fun->stack->thisVar);
trimStack(fun->stack);
- setVariable(fun->reg, SVT_INT, captureAllKeys);
+ setVariable(fun->reg, SVT_INT, captureAllKeysDeprecated);
return BR_CONTINUE;
}