Misc/Codestyle: Made some changes to function names
This commit is contained in:
@@ -137,7 +137,7 @@ void GameObject::AddToWorld()
|
||||
// The state can be changed after GameObject::Create but before GameObject::AddToWorld
|
||||
bool toggledState = GetGOData() ? GetGOData()->go_state == GO_STATE_READY : false;
|
||||
if (m_model)
|
||||
GetMap()->Insert(*m_model);
|
||||
GetMap()->InsertGameObjectModel(*m_model);
|
||||
|
||||
EnableCollision(startOpen ^ toggledState);
|
||||
WorldObject::AddToWorld();
|
||||
@@ -154,8 +154,8 @@ void GameObject::RemoveFromWorld()
|
||||
|
||||
RemoveFromOwner();
|
||||
if (m_model)
|
||||
if (GetMap()->Contains(*m_model))
|
||||
GetMap()->Remove(*m_model);
|
||||
if (GetMap()->ContainsGameObjectModel(*m_model))
|
||||
GetMap()->RemoveGameObjectModel(*m_model);
|
||||
WorldObject::RemoveFromWorld();
|
||||
sObjectAccessor->RemoveObject(this);
|
||||
}
|
||||
@@ -1971,8 +1971,8 @@ void GameObject::EnableCollision(bool enable)
|
||||
if (!m_model)
|
||||
return;
|
||||
|
||||
/*if (enable && !GetMap()->Contains(*m_model))
|
||||
GetMap()->Insert(*m_model);*/
|
||||
/*if (enable && !GetMap()->ContainsGameObjectModel(*m_model))
|
||||
GetMap()->InsertGameObjectModel(*m_model);*/
|
||||
|
||||
m_model->enable(enable ? GetPhaseMask() : 0);
|
||||
}
|
||||
@@ -1982,12 +1982,12 @@ void GameObject::UpdateModel()
|
||||
if (!IsInWorld())
|
||||
return;
|
||||
if (m_model)
|
||||
if (GetMap()->Contains(*m_model))
|
||||
GetMap()->Remove(*m_model);
|
||||
if (GetMap()->ContainsGameObjectModel(*m_model))
|
||||
GetMap()->RemoveGameObjectModel(*m_model);
|
||||
delete m_model;
|
||||
m_model = GameObjectModel::Create(*this);
|
||||
if (m_model)
|
||||
GetMap()->Insert(*m_model);
|
||||
GetMap()->InsertGameObjectModel(*m_model);
|
||||
}
|
||||
|
||||
Player* GameObject::GetLootRecipient() const
|
||||
|
||||
Reference in New Issue
Block a user