diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sludge/builtin.cpp | 4 | ||||
-rw-r--r-- | engines/sludge/speech.h | 1 |
2 files changed, 3 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; } diff --git a/engines/sludge/speech.h b/engines/sludge/speech.h index 98b6035cb0..cd2a6dd596 100644 --- a/engines/sludge/speech.h +++ b/engines/sludge/speech.h @@ -60,6 +60,7 @@ public: void setObjFontColour(ObjectType *t); void setSpeechSpeed(float speed) { _speechSpeed = speed; } float getSpeechSpeed() { return _speechSpeed; } + void setSpeechMode(int speechMode) { _speechMode = speechMode; } // load & save void save(Common::WriteStream *stream); |