diff options
Diffstat (limited to 'engines/sludge/sludger.cpp')
-rw-r--r-- | engines/sludge/sludger.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/sludge/sludger.cpp b/engines/sludge/sludger.cpp index 8e49b32465..a63b8b9923 100644 --- a/engines/sludge/sludger.cpp +++ b/engines/sludge/sludger.cpp @@ -54,7 +54,6 @@ namespace Sludge { extern int dialogValue; -extern Variable *launchResult; int numBIFNames = 0; Common::String *allBIFNames; @@ -74,7 +73,6 @@ extern SpeechStruct *speech; extern LoadedFunction *saverFunc; LoadedFunction *allRunningFunctions = NULL; -ScreenRegion *lastRegion = NULL; VariableStack *noStack = NULL; Variable *globalVars; @@ -913,6 +911,15 @@ bool runSludge() { return true; } +void killAllFunctions() { + LoadedFunction *ptr = allRunningFunctions; + while (ptr) { + LoadedFunction *kill = ptr; + ptr = ptr->next; + abortFunction(kill); + } +} + bool loadFunctionCode(LoadedFunction *newFunc) { uint numLines, numLinesRead; |