From 95676b298819d6b2d1df74d1f52668e2549a2c2f Mon Sep 17 00:00:00 2001
From: MW
Date: Fri, 15 Jun 2007 13:11:26 +0000
Subject: Preliminary movement added to sugilite, forwards walking only and no
animations.
---
OpenSim/OpenSim.Region/Scenes/Avatar.Update.cs | 27 ++++++++++++++------------
1 file changed, 15 insertions(+), 12 deletions(-)
(limited to 'OpenSim/OpenSim.Region/Scenes/Avatar.Update.cs')
diff --git a/OpenSim/OpenSim.Region/Scenes/Avatar.Update.cs b/OpenSim/OpenSim.Region/Scenes/Avatar.Update.cs
index d5c25f3..3f87e10 100644
--- a/OpenSim/OpenSim.Region/Scenes/Avatar.Update.cs
+++ b/OpenSim/OpenSim.Region/Scenes/Avatar.Update.cs
@@ -36,14 +36,26 @@ using OpenSim.Framework.Interfaces;
namespace OpenSim.Region.Scenes
{
partial class Avatar
- {
+ {
///
///
///
public override void update()
{
-
-
+ if (this.newForce)
+ {
+ this.SendTerseUpdateToALLClients();
+ _updateCount = 0;
+ }
+ else if (movementflag != 0)
+ {
+ _updateCount++;
+ if (_updateCount > 3)
+ {
+ this.SendTerseUpdateToALLClients();
+ _updateCount = 0;
+ }
+ }
}
///
@@ -117,15 +129,6 @@ namespace OpenSim.Region.Scenes
}
///
- /// Very likely to be deleted soon!
- ///
- ///
- public ImprovedTerseObjectUpdatePacket.ObjectDataBlock CreateTerseBlock()
- {
- return null;
- }
-
- ///
///
///
///
--
cgit v1.1