Core/Objects
* Vehicles can now be sent with UPDATETYPE_CREATE_OBJECT2 * Corrected HIGHGUID type for guilds
This commit is contained in:
1 parent
4384f02352
commit
5de7bf1f17
2 files changed
+9
-2
No files matched your search
@@ -200,14 +200,22 @@ void Object::BuildCreateUpdateBlockForPlayer(UpdateData* data, Player* target) c
|
||||
updateType = UPDATETYPE_CREATE_OBJECT2;
|
||||
break;
|
||||
case HIGHGUID_UNIT:
|
||||
case HIGHGUID_VEHICLE:
|
||||
{
|
||||
if (TempSummon const* summon = ToUnit()->ToTempSummon())
|
||||
if (IS_PLAYER_GUID(summon->GetSummonerGUID()))
|
||||
updateType = UPDATETYPE_CREATE_OBJECT2;
|
||||
|
||||
break;
|
||||
}
|
||||
case HIGHGUID_GAMEOBJECT:
|
||||
{
|
||||
if (IS_PLAYER_GUID(ToGameObject()->GetOwnerGUID()))
|
||||
updateType = UPDATETYPE_CREATE_OBJECT2;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (flags & UPDATEFLAG_STATIONARY_POSITION)
|
||||
@@ -236,7 +244,6 @@ void Object::BuildCreateUpdateBlockForPlayer(UpdateData* data, Player* target) c
|
||||
if (unit->getVictim())
|
||||
flags |= UPDATEFLAG_HAS_TARGET;
|
||||
|
||||
|
||||
ByteBuffer buf(500);
|
||||
buf << uint8(updateType);
|
||||
buf.append(GetPackGUID());
|
||||
|
||||
Reference in new issue
Block a user