aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
authorUbitUmarov2019-11-09 23:59:19 +0000
committerUbitUmarov2019-11-09 23:59:19 +0000
commit53339d29704d3a9fb2d436ee48fc3ca99ab33108 (patch)
treebced7330f7391458403d2eefb61b124bd51acc1a /OpenSim/Region/ClientStack
parentcosmetics (diff)
downloadopensim-SC-53339d29704d3a9fb2d436ee48fc3ca99ab33108.zip
opensim-SC-53339d29704d3a9fb2d436ee48fc3ca99ab33108.tar.gz
opensim-SC-53339d29704d3a9fb2d436ee48fc3ca99ab33108.tar.bz2
opensim-SC-53339d29704d3a9fb2d436ee48fc3ca99ab33108.tar.xz
terraforming changes: make sliders work, remove some brushs, etc. Feedback needed (run prebuild)
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rwxr-xr-xOpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs36
1 files changed, 14 insertions, 22 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 4b6b6ac..c8af1d1 100755
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -5153,7 +5153,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
5153 5153
5154 int count = 0; 5154 int count = 0;
5155 EntityUpdate eu; 5155 EntityUpdate eu;
5156 for(int indx = 0; indx < objectUpdates.Count;++indx) 5156 for(int indx = 0; indx < objectUpdates.Count; ++indx)
5157 { 5157 {
5158 eu = objectUpdates[indx]; 5158 eu = objectUpdates[indx];
5159 lastpos = zc.Position; 5159 lastpos = zc.Position;
@@ -8971,34 +8971,26 @@ namespace OpenSim.Region.ClientStack.LindenUDP
8971 8971
8972 private bool HandlerModifyLand(IClientAPI sender, Packet Pack) 8972 private bool HandlerModifyLand(IClientAPI sender, Packet Pack)
8973 { 8973 {
8974 if (OnModifyTerrain == null)
8975 return true;
8976
8974 ModifyLandPacket modify = (ModifyLandPacket)Pack; 8977 ModifyLandPacket modify = (ModifyLandPacket)Pack;
8975 8978
8976 #region Packet Session and User Check 8979 if (modify.ParcelData.Length == 0)
8977 if (modify.AgentData.SessionID != SessionId ||
8978 modify.AgentData.AgentID != AgentId)
8979 return true; 8980 return true;
8980 8981
8982 #region Packet Session and User Check
8983 if (modify.AgentData.SessionID != SessionId || modify.AgentData.AgentID != AgentId)
8984 return true;
8985
8981 #endregion 8986 #endregion
8982 //m_log.Info("[LAND]: LAND:" + modify.ToString()); 8987 //m_log.Info("[LAND]: LAND:" + modify.ToString());
8983 if (modify.ParcelData.Length > 0) 8988 for (int i = 0; i < modify.ParcelData.Length; i++)
8984 { 8989 {
8985 // Note: the ModifyTerrain event handler sends out updated packets before the end of this event. Therefore, 8990 OnModifyTerrain?.Invoke(AgentId, modify.ModifyBlock.Height, modify.ModifyBlock.Seconds,
8986 // a simple boolean value should work and perhaps queue up just a few terrain patch packets at the end of the edit. 8991 modify.ModifyBlockExtended[i].BrushSize, modify.ModifyBlock.Action,
8987 if (OnModifyTerrain != null) 8992 modify.ParcelData[i].North, modify.ParcelData[i].West,
8988 { 8993 modify.ParcelData[i].South, modify.ParcelData[i].East);
8989 for (int i = 0; i < modify.ParcelData.Length; i++)
8990 {
8991 ModifyTerrain handlerModifyTerrain = OnModifyTerrain;
8992 if (handlerModifyTerrain != null)
8993 {
8994 handlerModifyTerrain(AgentId, modify.ModifyBlock.Height, modify.ModifyBlock.Seconds,
8995 modify.ModifyBlock.BrushSize,
8996 modify.ModifyBlock.Action, modify.ParcelData[i].North,
8997 modify.ParcelData[i].West, modify.ParcelData[i].South,
8998 modify.ParcelData[i].East, AgentId);
8999 }
9000 }
9001 }
9002 } 8994 }
9003 8995
9004 return true; 8996 return true;