diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-08-16 16:26:44 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-08-16 16:26:44 +0200 |
commit | 732681db08438f0d61ad7fe4d670f79feaac7b9e (patch) | |
tree | f891869168bcc041408ac4ce00302fc4c1b5346b /src/save | |
parent | Graphics menu + MSAA (diff) | |
download | re3-732681db08438f0d61ad7fe4d670f79feaac7b9e.tar re3-732681db08438f0d61ad7fe4d670f79feaac7b9e.tar.gz re3-732681db08438f0d61ad7fe4d670f79feaac7b9e.tar.bz2 re3-732681db08438f0d61ad7fe4d670f79feaac7b9e.tar.lz re3-732681db08438f0d61ad7fe4d670f79feaac7b9e.tar.xz re3-732681db08438f0d61ad7fe4d670f79feaac7b9e.tar.zst re3-732681db08438f0d61ad7fe4d670f79feaac7b9e.zip |
Diffstat (limited to 'src/save')
-rw-r--r-- | src/save/GenericGameStorage.cpp | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/save/GenericGameStorage.cpp b/src/save/GenericGameStorage.cpp index 1e2d5da7..516c8d46 100644 --- a/src/save/GenericGameStorage.cpp +++ b/src/save/GenericGameStorage.cpp @@ -562,17 +562,23 @@ RestoreForStartLoad() ReadDataFromBufferPointer(_buf, TheCamera.GetMatrix().GetPosition().x); ReadDataFromBufferPointer(_buf, TheCamera.GetMatrix().GetPosition().y); ReadDataFromBufferPointer(_buf, TheCamera.GetMatrix().GetPosition().z); -#ifndef NO_ISLAND_LOADING - CStreaming::RemoveUnusedBigBuildings(CGame::currLevel); - CStreaming::RemoveUnusedBuildings(CGame::currLevel); +#ifdef NO_ISLAND_LOADING + if (CMenuManager::m_PrefsIslandLoading == CMenuManager::ISLAND_LOADING_LOW) #endif + { + CStreaming::RemoveUnusedBigBuildings(CGame::currLevel); + CStreaming::RemoveUnusedBuildings(CGame::currLevel); + } CCollision::SortOutCollisionAfterLoad(); -#ifndef NO_ISLAND_LOADING - CStreaming::RequestBigBuildings(CGame::currLevel); - CStreaming::LoadAllRequestedModels(false); - CStreaming::HaveAllBigBuildingsLoaded(CGame::currLevel); - CGame::TidyUpMemory(true, false); +#ifdef NO_ISLAND_LOADING + if (CMenuManager::m_PrefsIslandLoading == CMenuManager::ISLAND_LOADING_LOW) #endif + { + CStreaming::RequestBigBuildings(CGame::currLevel); + CStreaming::LoadAllRequestedModels(false); + CStreaming::HaveAllBigBuildingsLoaded(CGame::currLevel); + CGame::TidyUpMemory(true, false); + } if (CloseFile(file)) { return true; } else { |