mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 23:07:43 +00:00
Conform CElementGen with retail
This commit is contained in:
@@ -2316,28 +2316,6 @@ void CStateManager::SetCurrentAreaId(TAreaId aid)
|
||||
x850_world->GetMapWorld()->RecalculateWorldSphere(*x8c0_mapWorldInfo, *x850_world);
|
||||
}
|
||||
|
||||
void CStateManager::DeleteObjectRequest(TUniqueId id)
|
||||
{
|
||||
CEntity* entity = ObjectById(id);
|
||||
if (!entity)
|
||||
return;
|
||||
|
||||
if (entity->IsInGraveyard())
|
||||
return;
|
||||
|
||||
entity->SetIsInGraveyard(true);
|
||||
|
||||
x854_objectGraveyard.push_back(entity->GetUniqueId());
|
||||
entity->AcceptScriptMsg(EScriptObjectMessage::Deleted, kInvalidUniqueId, *this);
|
||||
entity->SetIsScriptingBlocked(true);
|
||||
|
||||
if (TCastToPtr<CActor> actor = entity)
|
||||
{
|
||||
x874_sortedListManager->Remove(actor);
|
||||
actor->SetUseInSortedLists(false);
|
||||
}
|
||||
}
|
||||
|
||||
CEntity* CStateManager::ObjectById(TUniqueId uid) { return GetAllObjectList().GetObjectById(uid); }
|
||||
const CEntity* CStateManager::GetObjectById(TUniqueId uid) const { return GetAllObjectList().GetObjectById(uid); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user