summaryrefslogtreecommitdiffstats
path: root/src/control/ScriptDebug.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-08-08 16:14:21 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2021-08-08 16:14:21 +0200
commit478bdcc1ca041bccf791c3aa7dbbc1a04da72454 (patch)
tree589cfc6708f54f58e10d5c8774fcb244c79b46e3 /src/control/ScriptDebug.cpp
parentMerge branch 'master' into miami (diff)
parentsmall refactoring (diff)
downloadre3-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/ScriptDebug.cpp')
-rw-r--r--src/control/ScriptDebug.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/control/ScriptDebug.cpp b/src/control/ScriptDebug.cpp
index 856b30bd..d48804e6 100644
--- a/src/control/ScriptDebug.cpp
+++ b/src/control/ScriptDebug.cpp
@@ -1736,16 +1736,14 @@ CTheScripts::SwitchToMission(int32 mission)
missionRetryScriptIndex = mission;
#ifdef USE_MISSION_REPLAY_OVERRIDE_FOR_NON_MOBILE_SCRIPT
if (CTheScripts::MissionSupportsMissionReplay(missionRetryScriptIndex)) {
- SaveGameForPause(4);
+ SaveGameForPause(SAVE_TYPE_QUICKSAVE_FOR_SCRIPT);
}
#endif
#endif
CTimer::Suspend();
int offset = CTheScripts::MultiScriptArray[mission];
#ifdef USE_DEBUG_SCRIPT_LOADER
- CFileMgr::ChangeDir("\\data\\");
- int handle = CFileMgr::OpenFile(scriptfile, "rb");
- CFileMgr::ChangeDir("\\");
+ int handle = OpenScript();
#else
CFileMgr::ChangeDir("\\");
int handle = CFileMgr::OpenFile("data\\main.scm", "rb");