summaryrefslogtreecommitdiffstats
path: root/src/entities
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-06 00:11:18 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-06 00:11:18 +0200
commite5da4c2b4de20397d52837ddaf6e482d88819757 (patch)
treed76515de66ca5d119dc8c7dce7fc99746c734831 /src/entities
parentscript colstore stuff (diff)
parentgetting the vice city map to work (diff)
downloadre3-e5da4c2b4de20397d52837ddaf6e482d88819757.tar
re3-e5da4c2b4de20397d52837ddaf6e482d88819757.tar.gz
re3-e5da4c2b4de20397d52837ddaf6e482d88819757.tar.bz2
re3-e5da4c2b4de20397d52837ddaf6e482d88819757.tar.lz
re3-e5da4c2b4de20397d52837ddaf6e482d88819757.tar.xz
re3-e5da4c2b4de20397d52837ddaf6e482d88819757.tar.zst
re3-e5da4c2b4de20397d52837ddaf6e482d88819757.zip
Diffstat (limited to 'src/entities')
-rw-r--r--src/entities/Entity.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/entities/Entity.cpp b/src/entities/Entity.cpp
index 5bcd1f51..907e3b14 100644
--- a/src/entities/Entity.cpp
+++ b/src/entities/Entity.cpp
@@ -323,6 +323,7 @@ CEntity::UpdateRwFrame(void)
}
}
+//--MIAMI: done
void
CEntity::SetupBigBuilding(void)
{
@@ -335,15 +336,10 @@ CEntity::SetupBigBuilding(void)
m_level = CTheZones::GetLevelFromPosition(GetPosition());
if(mi->m_lodDistances[0] <= 2000.0f)
bStreamBIGBuilding = true;
- // TODO(MIAMI): the stuff down there isn't right yet
- if(m_level == LEVEL_NONE){
- if(mi->GetTxdSlot() != CTxdStore::FindTxdSlot("generic")){
- mi->SetTexDictionary("generic");
- printf("%d:%s txd has been set to generic\n", m_modelIndex, mi->GetName());
- }
- }
- if(mi->m_lodDistances[0] > 2000.0f)
+ if(mi->m_lodDistances[0] > 2500.0f || mi->m_ignoreDrawDist)
m_level = LEVEL_NONE;
+ else if(m_level == LEVEL_NONE)
+ printf("%s isn't in a level\n", mi->GetName());
}
CRect