From 87e58a9b7e26986c8d396d836a97ad01a5f74c52 Mon Sep 17 00:00:00 2001 From: Simei Yin Date: Tue, 29 May 2018 22:34:22 +0200 Subject: SLUDGE: Split runSludge() to runAllFunctions() and handleSaveLoad() --- engines/sludge/function.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'engines/sludge/function.cpp') 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; } -- cgit v1.2.3