mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-12 22:51:11 +00:00
SLUDGE: Remove global variable speechMode
This commit is contained in:
parent
da491601d4
commit
7e7d8d769a
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user