mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
Core/Objects: Removed obsolete code
This commit is contained in:
@@ -137,20 +137,7 @@ void Object::_Create(uint32 guidlow, uint32 entry, HighGuid guidhigh)
|
||||
|
||||
uint64 guid = MAKE_NEW_GUID(guidlow, entry, guidhigh);
|
||||
SetUInt64Value(OBJECT_FIELD_GUID, guid);
|
||||
uint32 type = 0;
|
||||
switch (m_objectType)
|
||||
{
|
||||
//case TYPEID_ITEM: type = 3; break;
|
||||
//case TYPEID_CONTAINER: type = 7; break; //+4
|
||||
//case TYPEID_UNIT: type = 9; break; //+2
|
||||
//case TYPEID_PLAYER: type = 25; break; //+16
|
||||
//case TYPEID_GAMEOBJECT: type = 33; break; //+8
|
||||
case TYPEID_DYNAMICOBJECT: type = 65; break; //+32
|
||||
//case TYPEID_CORPSE: type = 129; break; //+64
|
||||
default: type = m_objectType; break;
|
||||
}
|
||||
SetUInt32Value(OBJECT_FIELD_TYPE, type);
|
||||
//SetUInt32Value(OBJECT_FIELD_TYPE, m_objectType);
|
||||
SetUInt32Value(OBJECT_FIELD_TYPE, m_objectType);
|
||||
m_PackGUID.wpos(0);
|
||||
m_PackGUID.appendPackGUID(GetGUID());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user