diff options
author | Magnus Larsen <golgothasTerror101@gmail.com> | 2021-07-10 17:56:28 +0200 |
---|---|---|
committer | Magnus Larsen <golgothasTerror101@gmail.com> | 2021-07-10 18:34:17 +0200 |
commit | 33c45e4ae0f10a4b296e520d3691b47bc801ea73 (patch) | |
tree | 6591d4f6e541ed89a314eed3168fb785b0778a8a /src/control/Script6.cpp | |
parent | readme: fix lto option (diff) | |
download | re3-33c45e4ae0f10a4b296e520d3691b47bc801ea73.tar re3-33c45e4ae0f10a4b296e520d3691b47bc801ea73.tar.gz re3-33c45e4ae0f10a4b296e520d3691b47bc801ea73.tar.bz2 re3-33c45e4ae0f10a4b296e520d3691b47bc801ea73.tar.lz re3-33c45e4ae0f10a4b296e520d3691b47bc801ea73.tar.xz re3-33c45e4ae0f10a4b296e520d3691b47bc801ea73.tar.zst re3-33c45e4ae0f10a4b296e520d3691b47bc801ea73.zip |
Diffstat (limited to 'src/control/Script6.cpp')
-rw-r--r-- | src/control/Script6.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/control/Script6.cpp b/src/control/Script6.cpp index 31be6987..c9b2b070 100644 --- a/src/control/Script6.cpp +++ b/src/control/Script6.cpp @@ -305,7 +305,11 @@ int8 CRunningScript::ProcessCommands1000To1099(int32 command) CTimer::Suspend(); int offset = CTheScripts::MultiScriptArray[ScriptParams[0]]; CFileMgr::ChangeDir("\\"); +#ifdef USE_DEBUG_SCRIPT_LOADER + int handle = open_script(); +#else int handle = CFileMgr::OpenFile("data\\main.scm", "rb"); +#endif CFileMgr::Seek(handle, offset, 0); CFileMgr::Read(handle, (const char*)&CTheScripts::ScriptSpace[SIZE_MAIN_SCRIPT], SIZE_MISSION_SCRIPT); CFileMgr::CloseFile(handle); |