some fixes and cosmetic changes

This commit is contained in:
aap
2020-05-10 17:09:57 +02:00
parent d9a3533438
commit 5b605c1271
8 changed files with 34 additions and 23 deletions

View File

@@ -150,7 +150,7 @@ void
CSimpleModelInfo::SetupBigBuilding(void)
{
CSimpleModelInfo *related;
if(m_lodDistances[0] > LOD_DISTANCE && m_atomics[2] == nil){
if(m_lodDistances[0] > LOD_DISTANCE && GetRelatedModel() == nil){
m_isBigBuilding = 1;
FindRelatedModel();
related = GetRelatedModel();