summaryrefslogtreecommitdiffstats
path: root/src/render/Renderer.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-12-27 17:26:30 +0100
committerSergeanur <s.anureev@yandex.ua>2020-12-27 17:26:30 +0100
commit7959b7fd1fa0b4dbe46485c111277eae3c374dde (patch)
tree43a023dcca34b29132f856615973812e3b197fb2 /src/render/Renderer.cpp
parentswitch vehicle pipe default (diff)
downloadre3-7959b7fd1fa0b4dbe46485c111277eae3c374dde.tar
re3-7959b7fd1fa0b4dbe46485c111277eae3c374dde.tar.gz
re3-7959b7fd1fa0b4dbe46485c111277eae3c374dde.tar.bz2
re3-7959b7fd1fa0b4dbe46485c111277eae3c374dde.tar.lz
re3-7959b7fd1fa0b4dbe46485c111277eae3c374dde.tar.xz
re3-7959b7fd1fa0b4dbe46485c111277eae3c374dde.tar.zst
re3-7959b7fd1fa0b4dbe46485c111277eae3c374dde.zip
Diffstat (limited to 'src/render/Renderer.cpp')
-rw-r--r--src/render/Renderer.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 7fbc34d0..e5c5a530 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -24,6 +24,7 @@
#include "Occlusion.h"
#include "Renderer.h"
#include "custompipes.h"
+#include "Frontend.h"
//--MIAMI: file done
@@ -1396,8 +1397,19 @@ CRenderer::ScanWorld(void)
poly[2].y = CWorld::GetSectorY(vectors[CORNER_FAR_TOPRIGHT].y);
ScanSectorPoly(poly, 3, ScanSectorList);
}
-
- ScanBigBuildingList(CWorld::GetBigBuildingList(CGame::currLevel));
+
+#ifdef NO_ISLAND_LOADING
+ if (FrontEndMenuManager.m_PrefsIslandLoading == CMenuManager::ISLAND_LOADING_HIGH) {
+ ScanBigBuildingList(CWorld::GetBigBuildingList(LEVEL_BEACH));
+ ScanBigBuildingList(CWorld::GetBigBuildingList(LEVEL_MAINLAND));
+ } else
+#endif
+ {
+#ifdef FIX_BUGS
+ if(CCollision::ms_collisionInMemory != LEVEL_GENERIC)
+#endif
+ ScanBigBuildingList(CWorld::GetBigBuildingList(CGame::currLevel));
+ }
ScanBigBuildingList(CWorld::GetBigBuildingList(LEVEL_GENERIC));
}
}