Avoid not needed too oftent send update data, cleanups. by SilverIce

--HG--
branch : trunk
This commit is contained in:
n0n4m3
2009-12-19 17:58:45 +01:00
parent 57bdbdc0ca
commit ef2cbee517
8 changed files with 28 additions and 69 deletions

View File

@@ -232,13 +232,7 @@ void Object::BuildCreateUpdateBlockForPlayer(UpdateData *data, Player *target) c
data->AddUpdateBlock(buf);
}
void Object::BuildUpdate(UpdateDataMapType &update_players)
{
ObjectAccessor::_buildUpdateObject(this,update_players);
ClearUpdateMask(true);
}
void Object::SendUpdateToPlayer(Player* player)
void Object::SendCreateUpdateToPlayer(Player* player)
{
// send create update to player
UpdateData upd;
@@ -711,20 +705,6 @@ 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();