diff options
author | aap <aap@papnet.eu> | 2020-08-18 11:09:50 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-08-18 11:09:50 +0200 |
commit | e3405f4be4369c98f874a2d477bd6567f1be9381 (patch) | |
tree | 1cdaa079fcb6a6da55d6d5126594b2a1a94bf76d /src/render/Renderer.cpp | |
parent | 0e4cd8cfae34867773ba991e9b0d5243a4678d42 (diff) | |
parent | 0418ba597bc53d08d0244188f4623ebadfdd2876 (diff) |
Merge branch 'master' of github.com:gtamodding/re3
Diffstat (limited to 'src/render/Renderer.cpp')
-rw-r--r-- | src/render/Renderer.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 76d8af2b..8a93ee70 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -19,6 +19,7 @@ #include "Shadows.h" #include "PointLights.h" #include "Renderer.h" +#include "Frontend.h" #include "custompipes.h" bool gbShowPedRoadGroups; @@ -720,15 +721,18 @@ CRenderer::ScanWorld(void) ScanSectorPoly(poly, 3, ScanSectorList); } #ifdef NO_ISLAND_LOADING - ScanBigBuildingList(CWorld::GetBigBuildingList(LEVEL_INDUSTRIAL)); - ScanBigBuildingList(CWorld::GetBigBuildingList(LEVEL_COMMERCIAL)); - ScanBigBuildingList(CWorld::GetBigBuildingList(LEVEL_SUBURBAN)); -#else + if (CMenuManager::m_PrefsIslandLoading == CMenuManager::ISLAND_LOADING_HIGH) { + ScanBigBuildingList(CWorld::GetBigBuildingList(LEVEL_INDUSTRIAL)); + ScanBigBuildingList(CWorld::GetBigBuildingList(LEVEL_COMMERCIAL)); + ScanBigBuildingList(CWorld::GetBigBuildingList(LEVEL_SUBURBAN)); + } else +#endif + { #ifdef FIX_BUGS if (CCollision::ms_collisionInMemory != LEVEL_GENERIC) #endif - ScanBigBuildingList(CWorld::GetBigBuildingList(CCollision::ms_collisionInMemory)); -#endif + ScanBigBuildingList(CWorld::GetBigBuildingList(CCollision::ms_collisionInMemory)); + } ScanBigBuildingList(CWorld::GetBigBuildingList(LEVEL_GENERIC)); } } |