diff options
author | Simei Yin | 2018-05-29 22:34:22 +0200 |
---|---|---|
committer | Simei Yin | 2018-05-29 22:37:10 +0200 |
commit | 87e58a9b7e26986c8d396d836a97ad01a5f74c52 (patch) | |
tree | 5302c65b34fa93ccc1c78ebcd01abe6808057802 /engines/sludge/function.cpp | |
parent | dc320b86bc0da7026bfd650be6a8450684b54fa9 (diff) | |
download | scummvm-rg350-87e58a9b7e26986c8d396d836a97ad01a5f74c52.tar.gz scummvm-rg350-87e58a9b7e26986c8d396d836a97ad01a5f74c52.tar.bz2 scummvm-rg350-87e58a9b7e26986c8d396d836a97ad01a5f74c52.zip |
SLUDGE: Split runSludge() to runAllFunctions() and handleSaveLoad()
Diffstat (limited to 'engines/sludge/function.cpp')
-rw-r--r-- | engines/sludge/function.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/engines/sludge/function.cpp b/engines/sludge/function.cpp index 98f7bf79b1..6905c384bc 100644 --- a/engines/sludge/function.cpp +++ b/engines/sludge/function.cpp @@ -702,7 +702,7 @@ int startNewFunctionNum(uint funcNum, uint numParamsExpected, return 1; } -bool runSludge() { +bool runAllFunctions() { LoadedFunction *thisFunction = allRunningFunctions; LoadedFunction *nextFunction; @@ -732,17 +732,6 @@ bool runSludge() { thisFunction = nextFunction; } - if (!g_sludge->loadNow.empty()) { - if (g_sludge->loadNow[0] == ':') { - saveGame(g_sludge->loadNow.c_str() + 1); - setVariable(saverFunc->reg, SVT_INT, 1); - } else { - if (!loadGame(g_sludge->loadNow)) - return false; - } - g_sludge->loadNow.clear(); - } - return true; } |