aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
authorMW2008-03-12 15:53:04 +0000
committerMW2008-03-12 15:53:04 +0000
commitfc551ef1271ee01888a874277b963eb35ddadaef (patch)
treeee9d24a97adf3dcc0025f566985cd6cdad6cc7ec /OpenSim/Region/ClientStack
parentApplied patch from mantis #610, fixed invalid filenames with dump_assets_to_f... (diff)
downloadopensim-SC_OLD-fc551ef1271ee01888a874277b963eb35ddadaef.zip
opensim-SC_OLD-fc551ef1271ee01888a874277b963eb35ddadaef.tar.gz
opensim-SC_OLD-fc551ef1271ee01888a874277b963eb35ddadaef.tar.bz2
opensim-SC_OLD-fc551ef1271ee01888a874277b963eb35ddadaef.tar.xz
Applied patch from mantis #749, Grass now stays to set type when moved. thanks Grumly57.
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.cs14
1 files changed, 8 insertions, 6 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs
index f11ac56..58d425d 100644
--- a/OpenSim/Region/ClientStack/ClientView.cs
+++ b/OpenSim/Region/ClientStack/ClientView.cs
@@ -1898,7 +1898,7 @@ namespace OpenSim.Region.ClientStack
1898 /// <param name="position"></param> 1898 /// <param name="position"></param>
1899 /// <param name="rotation"></param> 1899 /// <param name="rotation"></param>
1900 public void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position, 1900 public void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position,
1901 LLQuaternion rotation) 1901 LLQuaternion rotation, byte state)
1902 { 1902 {
1903 LLVector3 velocity = new LLVector3(0f, 0f, 0f); 1903 LLVector3 velocity = new LLVector3(0f, 0f, 0f);
1904 LLVector3 rotationalvelocity = new LLVector3(0f, 0f, 0f); 1904 LLVector3 rotationalvelocity = new LLVector3(0f, 0f, 0f);
@@ -1907,7 +1907,7 @@ namespace OpenSim.Region.ClientStack
1907 terse.RegionData.RegionHandle = regionHandle; 1907 terse.RegionData.RegionHandle = regionHandle;
1908 terse.RegionData.TimeDilation = timeDilation; 1908 terse.RegionData.TimeDilation = timeDilation;
1909 terse.ObjectData = new ImprovedTerseObjectUpdatePacket.ObjectDataBlock[1]; 1909 terse.ObjectData = new ImprovedTerseObjectUpdatePacket.ObjectDataBlock[1];
1910 terse.ObjectData[0] = CreatePrimImprovedBlock(localID, position, rotation, velocity, rotationalvelocity); 1910 terse.ObjectData[0] = CreatePrimImprovedBlock(localID, position, rotation, velocity, rotationalvelocity, state);
1911 terse.Header.Reliable = false; 1911 terse.Header.Reliable = false;
1912 OutPacket(terse, ThrottleOutPacketType.Task); 1912 OutPacket(terse, ThrottleOutPacketType.Task);
1913 } 1913 }
@@ -1920,7 +1920,7 @@ namespace OpenSim.Region.ClientStack
1920 terse.RegionData.RegionHandle = regionHandle; 1920 terse.RegionData.RegionHandle = regionHandle;
1921 terse.RegionData.TimeDilation = timeDilation; 1921 terse.RegionData.TimeDilation = timeDilation;
1922 terse.ObjectData = new ImprovedTerseObjectUpdatePacket.ObjectDataBlock[1]; 1922 terse.ObjectData = new ImprovedTerseObjectUpdatePacket.ObjectDataBlock[1];
1923 terse.ObjectData[0] = CreatePrimImprovedBlock(localID, position, rotation, velocity, rotationalvelocity); 1923 terse.ObjectData[0] = CreatePrimImprovedBlock(localID, position, rotation, velocity, rotationalvelocity, 0);
1924 terse.Header.Reliable = false; 1924 terse.Header.Reliable = false;
1925 OutPacket(terse, ThrottleOutPacketType.Task); 1925 OutPacket(terse, ThrottleOutPacketType.Task);
1926 } 1926 }
@@ -2027,7 +2027,8 @@ namespace OpenSim.Region.ClientStack
2027 LLVector3 position, 2027 LLVector3 position,
2028 LLQuaternion rotation, 2028 LLQuaternion rotation,
2029 LLVector3 velocity, 2029 LLVector3 velocity,
2030 LLVector3 rotationalvelocity) 2030 LLVector3 rotationalvelocity,
2031 byte state)
2031 { 2032 {
2032 uint ID = localID; 2033 uint ID = localID;
2033 byte[] bytes = new byte[60]; 2034 byte[] bytes = new byte[60];
@@ -2039,7 +2040,7 @@ namespace OpenSim.Region.ClientStack
2039 bytes[i++] = (byte)((ID >> 8) % 256); 2040 bytes[i++] = (byte)((ID >> 8) % 256);
2040 bytes[i++] = (byte)((ID >> 16) % 256); 2041 bytes[i++] = (byte)((ID >> 16) % 256);
2041 bytes[i++] = (byte)((ID >> 24) % 256); 2042 bytes[i++] = (byte)((ID >> 24) % 256);
2042 bytes[i++] = 0; 2043 bytes[i++] = state;
2043 bytes[i++] = 0; 2044 bytes[i++] = 0;
2044 2045
2045 byte[] pb = position.GetBytes(); 2046 byte[] pb = position.GetBytes();
@@ -2125,7 +2126,8 @@ namespace OpenSim.Region.ClientStack
2125 SetDefaultPrimPacketValues(objupdate); 2126 SetDefaultPrimPacketValues(objupdate);
2126 objupdate.UpdateFlags = flags; 2127 objupdate.UpdateFlags = flags;
2127 SetPrimPacketShapeData(objupdate, primShape); 2128 SetPrimPacketShapeData(objupdate, primShape);
2128 if ((primShape.PCode == 111) || (primShape.PCode == 255)) 2129 // if ((primShape.PCode == 111) || (primShape.PCode == 255))
2130 if ((primShape.PCode == (byte)PCode.NewTree) || (primShape.PCode == (byte)PCode.Tree) || (primShape.PCode == (byte)PCode.Grass))
2129 { 2131 {
2130 objupdate.Data = new byte[1]; 2132 objupdate.Data = new byte[1];
2131 objupdate.Data[0] = primShape.State; 2133 objupdate.Data[0] = primShape.State;