mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[9724] Temporary back to 0 player highguid.
This is resolve "none from players see each other" problem. Please, reapply non-0 player guid only with or after this problem resolve. Some ObjectGuid use cleanups added while reseach porblem source.
This commit is contained in:
parent
c6b56b512c
commit
20162b6db4
3 changed files with 8 additions and 6 deletions
|
|
@ -57,7 +57,9 @@ enum HighGuid
|
|||
{
|
||||
HIGHGUID_ITEM = 0x4700, // blizz 4700
|
||||
HIGHGUID_CONTAINER = 0x4700, // blizz 4700
|
||||
HIGHGUID_PLAYER = 0x0700, // blizz 0700
|
||||
HIGHGUID_PLAYER = 0x0000, // blizz 0700 (temporary reverted back to 0 high guid
|
||||
// in result unknown source visibility player with
|
||||
// player problems. please reapply only after its resolve)
|
||||
HIGHGUID_GAMEOBJECT = 0xF110, // blizz F110/F510
|
||||
HIGHGUID_TRANSPORT = 0xF120, // blizz F120/F520 (for GAMEOBJECT_TYPE_TRANSPORT)
|
||||
HIGHGUID_UNIT = 0xF130, // blizz F130/F530
|
||||
|
|
|
|||
|
|
@ -19105,7 +19105,7 @@ void Player::UpdateVisibilityOf(WorldObject const* viewPoint, WorldObject* targe
|
|||
{
|
||||
target->SendCreateUpdateToPlayer(this);
|
||||
if(target->GetTypeId()!=TYPEID_GAMEOBJECT||!((GameObject*)target)->IsTransport())
|
||||
m_clientGUIDs.insert(target->GetGUID());
|
||||
m_clientGUIDs.insert(target->GetObjectGuid());
|
||||
|
||||
#ifdef MANGOS_DEBUG
|
||||
if((sLog.getLogFilter() & LOG_FILTER_VISIBILITY_CHANGES)==0)
|
||||
|
|
@ -19145,14 +19145,14 @@ void Player::UpdateVisibilityOf(WorldObject const* viewPoint, T* target, UpdateD
|
|||
{
|
||||
BeforeVisibilityDestroy<T>(target,this);
|
||||
|
||||
ObjectGuid t_guid = target->GetGUID();
|
||||
ObjectGuid t_guid = target->GetObjectGuid();
|
||||
|
||||
target->BuildOutOfRangeUpdateBlock(&data);
|
||||
m_clientGUIDs.erase(t_guid);
|
||||
|
||||
#ifdef MANGOS_DEBUG
|
||||
if((sLog.getLogFilter() & LOG_FILTER_VISIBILITY_CHANGES)==0)
|
||||
sLog.outDebug("%s is out of range for player %u. Distance = %f",t_guid.GetString().c_str(),GetGUIDLow(),GetDistance(target));
|
||||
sLog.outDebug("%s is out of range for %s. Distance = %f",t_guid.GetString().c_str(),GetObjectGuid().GetString().c_str(),GetDistance(target));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
@ -19166,7 +19166,7 @@ void Player::UpdateVisibilityOf(WorldObject const* viewPoint, T* target, UpdateD
|
|||
|
||||
#ifdef MANGOS_DEBUG
|
||||
if((sLog.getLogFilter() & LOG_FILTER_VISIBILITY_CHANGES)==0)
|
||||
sLog.outDebug("Object %u (Type: %u, Entry: %u) is visible now for player %u. Distance = %f",target->GetGUIDLow(),target->GetTypeId(),target->GetEntry(),GetGUIDLow(),GetDistance(target));
|
||||
sLog.outDebug("%s is visible now for %s. Distance = %f",target->GetObjectGuid().GetString().c_str(),GetObjectGuid().GetString().c_str(),GetDistance(target));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9723"
|
||||
#define REVISION_NR "9724"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue