aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/world/World.cs
diff options
context:
space:
mode:
authorgareth2007-03-04 00:44:26 +0000
committergareth2007-03-04 00:44:26 +0000
commit572ab939369de8ccb666b31029cad119a965a57a (patch)
tree2c70798e4e33bc712fbe7bab7742944ef5215001 /src/world/World.cs
parentRollback to r117 (diff)
downloadopensim-SC-572ab939369de8ccb666b31029cad119a965a57a.zip
opensim-SC-572ab939369de8ccb666b31029cad119a965a57a.tar.gz
opensim-SC-572ab939369de8ccb666b31029cad119a965a57a.tar.bz2
opensim-SC-572ab939369de8ccb666b31029cad119a965a57a.tar.xz
Merged makomk's patch as per bug #61
Rescued my brain ready to implement animations and proper velocity encoding
Diffstat (limited to 'src/world/World.cs')
-rw-r--r--src/world/World.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/world/World.cs b/src/world/World.cs
index 1fabca4..b261884 100644
--- a/src/world/World.cs
+++ b/src/world/World.cs
@@ -51,7 +51,17 @@ namespace OpenSim.world
51 if(Entities[UUID].needupdate) { 51 if(Entities[UUID].needupdate) {
52 Entities[UUID].update(); 52 Entities[UUID].update();
53 } 53 }
54 54 if(Entities[UUID] is Avatar) { // FIXME: only send updates when avatar moves.
55 ImprovedTerseObjectUpdatePacket.ObjectDataBlock terseBlock = Entities[UUID].CreateTerseBlock();
56 foreach(OpenSimClient client in OpenSim_Main.sim.ClientThreads.Values) {
57 ImprovedTerseObjectUpdatePacket terse = new ImprovedTerseObjectUpdatePacket();
58 terse.RegionData.RegionHandle = OpenSim_Main.cfg.RegionHandle; // FIXME
59 terse.RegionData.TimeDilation = 0;
60 terse.ObjectData = new ImprovedTerseObjectUpdatePacket.ObjectDataBlock[1];
61 terse.ObjectData[0] = terseBlock;
62 client.OutPacket(terse);
63 }
64 }
55 } 65 }
56 } 66 }
57 67