diff options
Diffstat (limited to 'src/world/World.cs')
-rw-r--r-- | src/world/World.cs | 12 |
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 | ||