Misc/Codestyle: Made some changes to function names

This commit is contained in:
Subv
2012-08-19 11:07:21 -05:00
parent 19cec23f39
commit 48e50b8254
2 changed files with 11 additions and 11 deletions
@@ -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