mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Fixed some typos and revert one commit
--HG-- branch : trunk
This commit is contained in:
@@ -232,7 +232,13 @@ void Object::BuildCreateUpdateBlockForPlayer(UpdateData *data, Player *target) c
|
||||
data->AddUpdateBlock(buf);
|
||||
}
|
||||
|
||||
void Object::SendCreateUpdateToPlayer(Player* player)
|
||||
void Object::BuildUpdate(UpdateDataMapType &update_players)
|
||||
{
|
||||
ObjectAccessor::_buildUpdateObject(this,update_players);
|
||||
ClearUpdateMask(true);
|
||||
}
|
||||
|
||||
void Object::SendUpdateToPlayer(Player* player)
|
||||
{
|
||||
// send create update to player
|
||||
UpdateData upd;
|
||||
@@ -714,6 +720,20 @@ void Object::ClearUpdateMask(bool remove)
|
||||
}
|
||||
}
|
||||
|
||||
// Send current value fields changes to all viewers
|
||||
void Object::SendUpdateObjectToAllExcept(Player* exceptPlayer)
|
||||
{
|
||||
// changes will be send in create packet
|
||||
if(!IsInWorld())
|
||||
return;
|
||||
|
||||
// nothing do
|
||||
if(!m_objectUpdated)
|
||||
return;
|
||||
|
||||
ObjectAccessor::UpdateObject(this,exceptPlayer);
|
||||
}
|
||||
|
||||
bool Object::LoadValues(const char* data)
|
||||
{
|
||||
if(!m_uint32Values) _InitValues();
|
||||
|
||||
Reference in New Issue
Block a user