aboutsummaryrefslogtreecommitdiff
path: root/src/game/Object.cpp
diff options
context:
space:
mode:
authorn0n4m3 <none@none>2009-12-19 19:46:07 +0100
committern0n4m3 <none@none>2009-12-19 19:46:07 +0100
commit5a3b3d83eeac2e7b2d770bbe1346f2706dc25d01 (patch)
tree5ee21ab0e5b49af02b5355182a92b28720a7fd04 /src/game/Object.cpp
parent50bf68e099fbd7935d0e28ea052c4448c283f9e8 (diff)
Fixed some typos and revert one commit
--HG-- branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r--src/game/Object.cpp22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp
index 8727ab1d31f..3b976eb1d22 100644
--- a/src/game/Object.cpp
+++ b/src/game/Object.cpp
@@ -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();