diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-08-08 16:14:21 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-08-08 16:14:21 +0200 |
commit | 478bdcc1ca041bccf791c3aa7dbbc1a04da72454 (patch) | |
tree | 589cfc6708f54f58e10d5c8774fcb244c79b46e3 /src/control/Script6.cpp | |
parent | Merge branch 'master' into miami (diff) | |
parent | small refactoring (diff) | |
download | re3-478bdcc1ca041bccf791c3aa7dbbc1a04da72454.tar re3-478bdcc1ca041bccf791c3aa7dbbc1a04da72454.tar.gz re3-478bdcc1ca041bccf791c3aa7dbbc1a04da72454.tar.bz2 re3-478bdcc1ca041bccf791c3aa7dbbc1a04da72454.tar.lz re3-478bdcc1ca041bccf791c3aa7dbbc1a04da72454.tar.xz re3-478bdcc1ca041bccf791c3aa7dbbc1a04da72454.tar.zst re3-478bdcc1ca041bccf791c3aa7dbbc1a04da72454.zip |
Diffstat (limited to 'src/control/Script6.cpp')
-rw-r--r-- | src/control/Script6.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/control/Script6.cpp b/src/control/Script6.cpp index a9b750bf..8af32f57 100644 --- a/src/control/Script6.cpp +++ b/src/control/Script6.cpp @@ -381,7 +381,7 @@ int8 CRunningScript::ProcessCommands1000To1099(int32 command) if (!UsingMobileScript && CTheScripts::MissionSupportsMissionReplay(missionRetryScriptIndex)){ if (!AlreadySavedGame) { m_nIp = oldIp - 2; - SaveGameForPause(4); + SaveGameForPause(SAVE_TYPE_QUICKSAVE_FOR_SCRIPT); AlreadySavedGame = true; return 0; } @@ -394,9 +394,7 @@ int8 CRunningScript::ProcessCommands1000To1099(int32 command) CTimer::Suspend(); int offset = CTheScripts::MultiScriptArray[ScriptParams[0]]; #ifdef USE_DEBUG_SCRIPT_LOADER - CFileMgr::ChangeDir("\\data\\"); - int handle = CFileMgr::OpenFile(scriptfile, "rb"); - CFileMgr::ChangeDir("\\"); + int handle = CTheScripts::OpenScript(); #else CFileMgr::ChangeDir("\\"); int handle = CFileMgr::OpenFile("data\\main.scm", "rb"); |