mirror of
https://github.com/mrxenginner/reVC.git
synced 2026-10-11 09:48:15 +08:00
some work on zones
This commit is contained in:
1 parent
edd9301d7f
commit
cbfc45b3f7
11 files changed
+90
-86
No files matched your search
@@ -1088,7 +1088,7 @@ CFileLoader::LoadObjectInstance(const char *line)
|
||||
entity = new CBuilding;
|
||||
entity->SetModelIndexNoCreate(id);
|
||||
entity->GetMatrix() = CMatrix(xform);
|
||||
entity->m_level = CTheZones::GetLevelFromPosition(entity->GetPosition());
|
||||
entity->m_level = CTheZones::GetLevelFromPosition(&entity->GetPosition());
|
||||
if(mi->IsSimple()){
|
||||
if(mi->m_isBigBuilding)
|
||||
entity->SetupBigBuilding();
|
||||
@@ -1105,7 +1105,7 @@ CFileLoader::LoadObjectInstance(const char *line)
|
||||
CWorld::Add(entity);
|
||||
if(IsGlass(entity->GetModelIndex()))
|
||||
entity->bIsVisible = false;
|
||||
entity->m_level = CTheZones::GetLevelFromPosition(entity->GetPosition());
|
||||
entity->m_level = CTheZones::GetLevelFromPosition(&entity->GetPosition());
|
||||
}
|
||||
|
||||
RwMatrixDestroy(xform);
|
||||
|
||||
Reference in new issue
Block a user