mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[10380] Finaly drop MAKE_NEW_GUID.
This meaning that ObjectGuid only proper way create guid from lowguid now. But packet handlers still generate uint64 guids. Some DB fields also loaded uint64 values. Also possible existed not catches et uint32->uint64 assigns.
This commit is contained in:
parent
5fd06abf44
commit
22b515718f
6 changed files with 9 additions and 14 deletions
|
|
@ -77,11 +77,6 @@ enum HighGuid
|
|||
//*** Must be replaced by ObjectGuid use ***
|
||||
#define IS_PLAYER_GUID(Guid) ( GUID_HIPART(Guid) == HIGHGUID_PLAYER && Guid!=0 )
|
||||
// special case for empty guid need check
|
||||
// l - OBJECT_FIELD_GUID
|
||||
// e - OBJECT_FIELD_ENTRY for GO (except GAMEOBJECT_TYPE_MO_TRANSPORT) and creatures or UNIT_FIELD_PETNUMBER for pets
|
||||
// h - OBJECT_FIELD_GUID + 1
|
||||
#define MAKE_NEW_GUID(l, e, h) uint64( uint64(l) | ( uint64(e) << 24 ) | ( uint64(h) << 48 ) )
|
||||
|
||||
#define GUID_HIPART(x) (uint32)((uint64(x) >> 48) & 0x0000FFFF)
|
||||
|
||||
// We have different low and middle part size for different guid types
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue