aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/builtin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sludge/builtin.cpp')
-rw-r--r--engines/sludge/builtin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sludge/builtin.cpp b/engines/sludge/builtin.cpp
index bc635f88cd..42fcfcf988 100644
--- a/engines/sludge/builtin.cpp
+++ b/engines/sludge/builtin.cpp
@@ -54,8 +54,6 @@
namespace Sludge {
-int speechMode = 0;
-
Variable *launchResult = NULL;
extern int lastFramesPerSecond;
@@ -1280,6 +1278,7 @@ builtIn(setLightMap) {
builtIn(setSpeechMode) {
UNUSEDALL
+ int speechMode;
if (!getValueType(speechMode, SVT_INT, fun->stack->thisVar))
return BR_ERROR;
trimStack(fun->stack);
@@ -1287,6 +1286,7 @@ builtIn(setSpeechMode) {
fatal("Valid parameters are be SPEECHANDTEXT, SPEECHONLY or TEXTONLY");
return BR_ERROR;
}
+ g_sludge->_speechMan->setSpeechMode(speechMode);
return BR_CONTINUE;
}