diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-07-13 16:43:09 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-07-13 16:43:09 +0200 |
commit | 841fa5155c17b6edf4774deaa311a4e5935be4d6 (patch) | |
tree | 7fae91d0edd59cdb4c340d9cf590e0cd07a75310 /src/modelinfo | |
parent | Add cutscene borders switch to the menu (diff) | |
download | re3-841fa5155c17b6edf4774deaa311a4e5935be4d6.tar re3-841fa5155c17b6edf4774deaa311a4e5935be4d6.tar.gz re3-841fa5155c17b6edf4774deaa311a4e5935be4d6.tar.bz2 re3-841fa5155c17b6edf4774deaa311a4e5935be4d6.tar.lz re3-841fa5155c17b6edf4774deaa311a4e5935be4d6.tar.xz re3-841fa5155c17b6edf4774deaa311a4e5935be4d6.tar.zst re3-841fa5155c17b6edf4774deaa311a4e5935be4d6.zip |
Diffstat (limited to 'src/modelinfo')
-rw-r--r-- | src/modelinfo/ModelInfo.cpp | 2 | ||||
-rw-r--r-- | src/modelinfo/PedModelInfo.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/modelinfo/ModelInfo.cpp b/src/modelinfo/ModelInfo.cpp index 713600fd..d6fb0102 100644 --- a/src/modelinfo/ModelInfo.cpp +++ b/src/modelinfo/ModelInfo.cpp @@ -226,7 +226,7 @@ CModelInfo::RemoveColModelsFromOtherLevels(eLevelName level) mi = GetModelInfo(i); if(mi){ colmodel = mi->GetColModel(); - if(colmodel && colmodel->level != LEVEL_NONE && colmodel->level != level) + if(colmodel && colmodel->level != LEVEL_GENERIC && colmodel->level != level) colmodel->RemoveCollisionVolumes(); } } diff --git a/src/modelinfo/PedModelInfo.cpp b/src/modelinfo/PedModelInfo.cpp index 1d8aa4dc..60c63114 100644 --- a/src/modelinfo/PedModelInfo.cpp +++ b/src/modelinfo/PedModelInfo.cpp @@ -265,7 +265,7 @@ CPedModelInfo::CreateHitColModel(void) max.x = max.y = 0.5f; max.z = 1.2f; colmodel->boundingBox.Set(min, max, 0, 0); - colmodel->level = LEVEL_NONE; + colmodel->level = LEVEL_GENERIC; m_hitColModel = colmodel; } @@ -349,7 +349,7 @@ CPedModelInfo::CreateHitColModelSkinned(RpClump *clump) max.x = max.y = 0.5f; max.z = 1.2f; colmodel->boundingBox.Set(min, max, 0, 0); - colmodel->level = LEVEL_NONE; + colmodel->level = LEVEL_GENERIC; m_hitColModel = colmodel; } |