summaryrefslogtreecommitdiffstats
path: root/src/core/FileLoader.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-06 21:54:43 +0200
committeraap <aap@papnet.eu>2020-05-06 21:54:43 +0200
commit965ea93a616575ef483c21f38c715b6559b18d4a (patch)
tree7ac8493ed384631a2956c599d0f2f62f730119dd /src/core/FileLoader.cpp
parentMerge pull request #516 from Nick007J/miami (diff)
downloadre3-965ea93a616575ef483c21f38c715b6559b18d4a.tar
re3-965ea93a616575ef483c21f38c715b6559b18d4a.tar.gz
re3-965ea93a616575ef483c21f38c715b6559b18d4a.tar.bz2
re3-965ea93a616575ef483c21f38c715b6559b18d4a.tar.lz
re3-965ea93a616575ef483c21f38c715b6559b18d4a.tar.xz
re3-965ea93a616575ef483c21f38c715b6559b18d4a.tar.zst
re3-965ea93a616575ef483c21f38c715b6559b18d4a.zip
Diffstat (limited to 'src/core/FileLoader.cpp')
-rw-r--r--src/core/FileLoader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/FileLoader.cpp b/src/core/FileLoader.cpp
index 87cba5eb..33be20cb 100644
--- a/src/core/FileLoader.cpp
+++ b/src/core/FileLoader.cpp
@@ -641,7 +641,7 @@ CFileLoader::LoadObjectTypes(const char *filename)
for(id = minID; id <= maxID; id++){
CSimpleModelInfo *mi = (CSimpleModelInfo*)CModelInfo::GetModelInfo(id);
- if(mi && mi->IsSimple())
+ if(mi && mi->IsBuilding())
mi->SetupBigBuilding();
}
}
@@ -1143,7 +1143,7 @@ CFileLoader::LoadObjectInstance(const char *line)
entity->GetMatrix() = CMatrix(xform);
entity->m_level = CTheZones::GetLevelFromPosition(&entity->GetPosition());
entity->m_area = area;
- if(mi->IsSimple()){
+ if(mi->IsBuilding()){
if(mi->m_isBigBuilding)
entity->SetupBigBuilding();
if(mi->m_isSubway)