Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
This commit is contained in:
@@ -143,7 +143,12 @@ void GameObject::AddToWorld()
|
||||
// The state can be changed after GameObject::Create but before GameObject::AddToWorld
|
||||
bool toggledState = GetGoType() == GAMEOBJECT_TYPE_CHEST ? getLootState() == GO_READY : (GetGoState() == GO_STATE_READY || IsTransport());
|
||||
if (m_model)
|
||||
GetMap()->InsertGameObjectModel(*m_model);
|
||||
{
|
||||
if (Transport* trans = ToTransport())
|
||||
trans->SetDelayedAddModelToMap();
|
||||
else
|
||||
GetMap()->InsertGameObjectModel(*m_model);
|
||||
}
|
||||
|
||||
EnableCollision(toggledState);
|
||||
WorldObject::AddToWorld();
|
||||
|
||||
Reference in New Issue
Block a user