aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs
diff options
context:
space:
mode:
authormingchen2007-06-06 03:00:59 +0000
committermingchen2007-06-06 03:00:59 +0000
commitea798195758a6692b583930e5846c643157143be (patch)
tree50ac10b862332a622dc50c991591cc65c084d9b5 /OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs
parentUnhippos! (diff)
downloadopensim-SC_OLD-ea798195758a6692b583930e5846c643157143be.zip
opensim-SC_OLD-ea798195758a6692b583930e5846c643157143be.tar.gz
opensim-SC_OLD-ea798195758a6692b583930e5846c643157143be.tar.bz2
opensim-SC_OLD-ea798195758a6692b583930e5846c643157143be.tar.xz
Changes:
*Added support for Subdivision (use master avatar to login to try out) *Added Parcel Border support *Enabled user account storage, but only when a new account is created Bug Fixes: *Fixed crash on startup while in sandbox when "Setting up master avatar" *Fixed most core functions in ParcelManager and Parcel that where broken *Fixed Parcel saving to database Known Issues: *Dividing parcel fails in viewer (gives an error about needing 2 parcels)
Diffstat (limited to 'OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs')
-rw-r--r--OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs19
1 files changed, 6 insertions, 13 deletions
diff --git a/OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs b/OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs
index 35de1e6..2a75205 100644
--- a/OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs
+++ b/OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs
@@ -84,6 +84,7 @@ namespace OpenSim
84 public event UpdatePrimVector OnUpdatePrimScale; 84 public event UpdatePrimVector OnUpdatePrimScale;
85 public event StatusChange OnChildAgentStatus; 85 public event StatusChange OnChildAgentStatus;
86 public event ParcelPropertiesRequest OnParcelPropertiesRequest; 86 public event ParcelPropertiesRequest OnParcelPropertiesRequest;
87 public event ParcelDivideRequest OnParcelDivideRequest;
87 88
88 protected override void ProcessInPacket(Packet Pack) 89 protected override void ProcessInPacket(Packet Pack)
89 { 90 {
@@ -472,6 +473,10 @@ namespace OpenSim
472 ParcelPropertiesRequestPacket propertiesRequest = (ParcelPropertiesRequestPacket)Pack; 473 ParcelPropertiesRequestPacket propertiesRequest = (ParcelPropertiesRequestPacket)Pack;
473 OnParcelPropertiesRequest((int)Math.Round(propertiesRequest.ParcelData.West), (int)Math.Round(propertiesRequest.ParcelData.South), (int)Math.Round(propertiesRequest.ParcelData.East), (int)Math.Round(propertiesRequest.ParcelData.North),propertiesRequest.ParcelData.SequenceID,propertiesRequest.ParcelData.SnapSelection, this); 474 OnParcelPropertiesRequest((int)Math.Round(propertiesRequest.ParcelData.West), (int)Math.Round(propertiesRequest.ParcelData.South), (int)Math.Round(propertiesRequest.ParcelData.East), (int)Math.Round(propertiesRequest.ParcelData.North),propertiesRequest.ParcelData.SequenceID,propertiesRequest.ParcelData.SnapSelection, this);
474 break; 475 break;
476 case PacketType.ParcelDivide:
477 ParcelDividePacket parcelDivide = (ParcelDividePacket)Pack;
478 OnParcelDivideRequest((int)Math.Round(parcelDivide.ParcelData.West), (int)Math.Round(parcelDivide.ParcelData.South), (int)Math.Round(parcelDivide.ParcelData.East), (int)Math.Round(parcelDivide.ParcelData.North), this);
479 break;
475 #endregion 480 #endregion
476 481
477 #region unimplemented handlers 482 #region unimplemented handlers
@@ -481,19 +486,7 @@ namespace OpenSim
481 case PacketType.ObjectScale: 486 case PacketType.ObjectScale:
482 break; 487 break;
483 case PacketType.MoneyBalanceRequest: 488 case PacketType.MoneyBalanceRequest:
484 //This need to be actually done and not thrown back with fake info 489 //This need to be actually done and not thrown back with fake infos
485 MoneyBalanceRequestPacket incoming = (MoneyBalanceRequestPacket)Pack;
486 MoneyBalanceReplyPacket outgoing = new MoneyBalanceReplyPacket();
487 outgoing.MoneyData.AgentID = incoming.AgentData.AgentID;
488 outgoing.MoneyData.MoneyBalance = 31337;
489 outgoing.MoneyData.SquareMetersCommitted = 0;
490 outgoing.MoneyData.SquareMetersCredit = 100000000;
491 outgoing.MoneyData.TransactionID = incoming.MoneyData.TransactionID;
492 outgoing.MoneyData.TransactionSuccess = true;
493 outgoing.MoneyData.Description = libsecondlife.Helpers.StringToField("");
494 this.OutPacket((Packet)outgoing);
495 MainConsole.Instance.Notice("Sent Temporary Money packet (they have leet monies)");
496
497 break; 490 break;
498 491
499 case PacketType.EstateCovenantRequest: 492 case PacketType.EstateCovenantRequest: