aboutsummaryrefslogtreecommitdiff
path: root/src/game/Object.cpp
diff options
context:
space:
mode:
authorn0n4m3 <none@none>2009-12-19 17:58:45 +0100
committern0n4m3 <none@none>2009-12-19 17:58:45 +0100
commitef2cbee517417814d2f5fe5afb4148fb8804b4b2 (patch)
tree6fb1d2eefe156d62ee4d23c4d17384cf79492630 /src/game/Object.cpp
parent57bdbdc0ca8e867520de9927389edb703a04c43a (diff)
Avoid not needed too oftent send update data, cleanups. by SilverIce
--HG-- branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r--src/game/Object.cpp22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp
index 0c8c215d09a..1522f8db754 100644
--- a/src/game/Object.cpp
+++ b/src/game/Object.cpp
@@ -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();