diff options
author | gareth | 2007-03-04 00:44:26 +0000 |
---|---|---|
committer | gareth | 2007-03-04 00:44:26 +0000 |
commit | 572ab939369de8ccb666b31029cad119a965a57a (patch) | |
tree | 2c70798e4e33bc712fbe7bab7742944ef5215001 /src/world/World.cs | |
parent | Rollback to r117 (diff) | |
download | opensim-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.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 | ||