setting some areas so objects dont disappear

This commit is contained in:
aap 2020-05-06 14:43:23 +02:00
parent 600cbee7d4
commit 25a4091fa8
3 changed files with 3 additions and 0 deletions

View File

@ -77,6 +77,7 @@ CEntity::CEntity(void)
m_scanCode = 0; m_scanCode = 0;
m_modelIndex = -1; m_modelIndex = -1;
m_rwObject = nil; m_rwObject = nil;
m_area = AREA_MAIN_MAP;
m_randomSeed = CGeneral::GetRandomNumber(); m_randomSeed = CGeneral::GetRandomNumber();
m_pFirstReference = nil; m_pFirstReference = nil;
} }

View File

@ -10,4 +10,5 @@ CDummyObject::CDummyObject(CObject *obj)
AttachToRwObject(obj->m_rwObject); AttachToRwObject(obj->m_rwObject);
obj->DetachFromRwObject(); obj->DetachFromRwObject();
m_level = obj->m_level; m_level = obj->m_level;
m_area = obj->m_area;
} }

View File

@ -68,6 +68,7 @@ CObject::CObject(CDummyObject *dummy)
dummy->DetachFromRwObject(); dummy->DetachFromRwObject();
Init(); Init();
m_level = dummy->m_level; m_level = dummy->m_level;
m_area = dummy->m_area;
} }
CObject::~CObject(void) CObject::~CObject(void)