mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[11619] Remove depricated GetGUID and forbit implicit uint64->ObjectGuid casts
This commit is contained in:
parent
9ae4d59540
commit
de0fc143f6
3 changed files with 3 additions and 4 deletions
|
|
@ -128,7 +128,7 @@ class MANGOS_DLL_SPEC Object
|
|||
m_inWorld = true;
|
||||
|
||||
// synchronize values mirror with values array (changes will send in updatecreate opcode any way
|
||||
ClearUpdateMask(false); // false - we can't have update dat in update queue before adding to world
|
||||
ClearUpdateMask(false); // false - we can't have update data in update queue before adding to world
|
||||
}
|
||||
virtual void RemoveFromWorld()
|
||||
{
|
||||
|
|
@ -138,7 +138,6 @@ class MANGOS_DLL_SPEC Object
|
|||
}
|
||||
|
||||
ObjectGuid const& GetObjectGuid() const { return GetGuidValue(OBJECT_FIELD_GUID); }
|
||||
const uint64& GetGUID() const { return GetUInt64Value(OBJECT_FIELD_GUID); } // DEPRECATED, not use, will removed soon
|
||||
uint32 GetGUIDLow() const { return GetObjectGuid().GetCounter(); }
|
||||
PackedGuid const& GetPackGUID() const { return m_PackGUID; }
|
||||
std::string GetGuidStr() const { return GetObjectGuid().GetString(); }
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ class MANGOS_DLL_SPEC ObjectGuid
|
|||
{
|
||||
public: // constructors
|
||||
ObjectGuid() : m_guid(0) {}
|
||||
ObjectGuid(uint64 const& guid) : m_guid(guid) {} // temporary allowed implicit cast, really bad in connection with operator uint64()
|
||||
explicit ObjectGuid(uint64 const& guid) : m_guid(guid) {}
|
||||
ObjectGuid(HighGuid hi, uint32 entry, uint32 counter) : m_guid(counter ? uint64(counter) | (uint64(entry) << 24) | (uint64(hi) << 48) : 0) {}
|
||||
ObjectGuid(HighGuid hi, uint32 counter) : m_guid(counter ? uint64(counter) | (uint64(hi) << 48) : 0) {}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11618"
|
||||
#define REVISION_NR "11619"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue