diff options
author | aap <aap@papnet.eu> | 2021-01-09 11:43:58 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-01-09 11:43:58 +0100 |
commit | 225b8953fd031de426d2d2c7f40ea6440c0ffd15 (patch) | |
tree | a28ccdbb70276de697d8075cf3a10de5a85e7537 /src/entities/Entity.cpp | |
parent | Sector sizes (diff) | |
download | re3-225b8953fd031de426d2d2c7f40ea6440c0ffd15.tar re3-225b8953fd031de426d2d2c7f40ea6440c0ffd15.tar.gz re3-225b8953fd031de426d2d2c7f40ea6440c0ffd15.tar.bz2 re3-225b8953fd031de426d2d2c7f40ea6440c0ffd15.tar.lz re3-225b8953fd031de426d2d2c7f40ea6440c0ffd15.tar.xz re3-225b8953fd031de426d2d2c7f40ea6440c0ffd15.tar.zst re3-225b8953fd031de426d2d2c7f40ea6440c0ffd15.zip |
Diffstat (limited to 'src/entities/Entity.cpp')
-rw-r--r-- | src/entities/Entity.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/entities/Entity.cpp b/src/entities/Entity.cpp index 862d2562..921da7df 100644 --- a/src/entities/Entity.cpp +++ b/src/entities/Entity.cpp @@ -4,6 +4,7 @@ #include "RwHelper.h" #include "ModelIndices.h" #include "Timer.h" +#include "Streaming.h" #include "Entity.h" #include "Object.h" #include "World.h" @@ -623,10 +624,15 @@ CEntity::SetupBigBuilding(void) m_level = CTheZones::GetLevelFromPosition(&GetPosition()); if(mi->m_lodDistances[0] <= 2000.0f) bStreamBIGBuilding = true; - if(mi->m_lodDistances[0] > 2500.0f || mi->m_ignoreDrawDist) + if(m_modelIndex == islandLODindust || + m_modelIndex == islandLODcomInd || + m_modelIndex == islandLODcomSub || + m_modelIndex == islandLODsubInd || + m_modelIndex == islandLODsubCom || + mi->m_lodDistances[0] > 5000.0f || mi->m_ignoreDrawDist) m_level = LEVEL_GENERIC; - else if(m_level == LEVEL_GENERIC) - printf("%s isn't in a level\n", mi->GetModelName()); +// else if(m_level == LEVEL_GENERIC) +// printf("%s isn't in a level\n", mi->GetModelName()); } float WindTabel[] = { |