summaryrefslogtreecommitdiffstats
path: root/src/modelinfo/ModelInfo.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-08-16 16:26:44 +0200
committerSergeanur <s.anureev@yandex.ua>2020-08-16 16:26:44 +0200
commit732681db08438f0d61ad7fe4d670f79feaac7b9e (patch)
treef891869168bcc041408ac4ce00302fc4c1b5346b /src/modelinfo/ModelInfo.cpp
parentGraphics menu + MSAA (diff)
downloadre3-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 '')
-rw-r--r--src/modelinfo/ModelInfo.cpp28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/modelinfo/ModelInfo.cpp b/src/modelinfo/ModelInfo.cpp
index d6fb0102..5d9c7700 100644
--- a/src/modelinfo/ModelInfo.cpp
+++ b/src/modelinfo/ModelInfo.cpp
@@ -4,6 +4,7 @@
#include "TempColModels.h"
#include "ModelIndices.h"
#include "ModelInfo.h"
+#include "Frontend.h"
CBaseModelInfo *CModelInfo::ms_modelInfoPtrs[MODELINFOSIZE];
@@ -217,20 +218,23 @@ CModelInfo::IsBikeModel(int32 id)
void
CModelInfo::RemoveColModelsFromOtherLevels(eLevelName level)
{
-#ifndef NO_ISLAND_LOADING
- int i;
- CBaseModelInfo *mi;
- CColModel *colmodel;
-
- for(i = 0; i < MODELINFOSIZE; i++){
- mi = GetModelInfo(i);
- if(mi){
- colmodel = mi->GetColModel();
- if(colmodel && colmodel->level != LEVEL_GENERIC && colmodel->level != level)
- colmodel->RemoveCollisionVolumes();
+#ifdef NO_ISLAND_LOADING
+ if (CMenuManager::m_PrefsIslandLoading == CMenuManager::ISLAND_LOADING_LOW)
+#endif
+ {
+ int i;
+ CBaseModelInfo *mi;
+ CColModel *colmodel;
+
+ for (i = 0; i < MODELINFOSIZE; i++) {
+ mi = GetModelInfo(i);
+ if (mi) {
+ colmodel = mi->GetColModel();
+ if (colmodel && colmodel->level != LEVEL_GENERIC && colmodel->level != level)
+ colmodel->RemoveCollisionVolumes();
+ }
}
}
-#endif
}
void