aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/World
diff options
context:
space:
mode:
authorTeravus Ovares2008-09-26 17:25:22 +0000
committerTeravus Ovares2008-09-26 17:25:22 +0000
commit16b6738cdadc70966a93b6d025ae469738955dcb (patch)
tree7a3c0075e9ee5fd04d972bc52be38aec4d51f648 /OpenSim/Region/Environment/Modules/World
parentDNE code cleanups (diff)
downloadopensim-SC_OLD-16b6738cdadc70966a93b6d025ae469738955dcb.zip
opensim-SC_OLD-16b6738cdadc70966a93b6d025ae469738955dcb.tar.gz
opensim-SC_OLD-16b6738cdadc70966a93b6d025ae469738955dcb.tar.bz2
opensim-SC_OLD-16b6738cdadc70966a93b6d025ae469738955dcb.tar.xz
* Patch from JHurliman
* Updates to libomv r2243, * Remove lots of unnecessary typecasts * Improves SendWindData() Thanks jhurliman. * Will update OpenSim-libs in 10 minutes..
Diffstat (limited to 'OpenSim/Region/Environment/Modules/World')
-rw-r--r--OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs60
-rw-r--r--OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs4
-rw-r--r--OpenSim/Region/Environment/Modules/World/Land/LandObject.cs28
-rw-r--r--OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs3
-rw-r--r--OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs44
5 files changed, 55 insertions, 84 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs
index bec1300..3dddc2b 100644
--- a/OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs
+++ b/OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs
@@ -732,40 +732,40 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
732 732
733 public uint GetRegionFlags() 733 public uint GetRegionFlags()
734 { 734 {
735 Simulator.RegionFlags flags = Simulator.RegionFlags.None; 735 RegionFlags flags = RegionFlags.None;
736 736
737 // Fully implemented 737 // Fully implemented
738 // 738 //
739 if (m_scene.RegionInfo.RegionSettings.AllowDamage) 739 if (m_scene.RegionInfo.RegionSettings.AllowDamage)
740 flags |= Simulator.RegionFlags.AllowDamage; 740 flags |= RegionFlags.AllowDamage;
741 if (m_scene.RegionInfo.RegionSettings.BlockTerraform) 741 if (m_scene.RegionInfo.RegionSettings.BlockTerraform)
742 flags |= Simulator.RegionFlags.BlockTerraform; 742 flags |= RegionFlags.BlockTerraform;
743 if (!m_scene.RegionInfo.RegionSettings.AllowLandResell) 743 if (!m_scene.RegionInfo.RegionSettings.AllowLandResell)
744 flags |= Simulator.RegionFlags.BlockLandResell; 744 flags |= RegionFlags.BlockLandResell;
745 if (m_scene.RegionInfo.RegionSettings.DisableCollisions) 745 if (m_scene.RegionInfo.RegionSettings.DisableCollisions)
746 flags |= Simulator.RegionFlags.SkipCollisions; 746 flags |= RegionFlags.SkipCollisions;
747 if (m_scene.RegionInfo.RegionSettings.DisableScripts) 747 if (m_scene.RegionInfo.RegionSettings.DisableScripts)
748 flags |= Simulator.RegionFlags.SkipScripts; 748 flags |= RegionFlags.SkipScripts;
749 if (m_scene.RegionInfo.RegionSettings.DisablePhysics) 749 if (m_scene.RegionInfo.RegionSettings.DisablePhysics)
750 flags |= Simulator.RegionFlags.SkipPhysics; 750 flags |= RegionFlags.SkipPhysics;
751 if (m_scene.RegionInfo.RegionSettings.BlockFly) 751 if (m_scene.RegionInfo.RegionSettings.BlockFly)
752 flags |= Simulator.RegionFlags.NoFly; 752 flags |= RegionFlags.NoFly;
753 if (m_scene.RegionInfo.RegionSettings.RestrictPushing) 753 if (m_scene.RegionInfo.RegionSettings.RestrictPushing)
754 flags |= Simulator.RegionFlags.RestrictPushObject; 754 flags |= RegionFlags.RestrictPushObject;
755 if (m_scene.RegionInfo.RegionSettings.AllowLandJoinDivide) 755 if (m_scene.RegionInfo.RegionSettings.AllowLandJoinDivide)
756 flags |= Simulator.RegionFlags.AllowParcelChanges; 756 flags |= RegionFlags.AllowParcelChanges;
757 if (m_scene.RegionInfo.RegionSettings.BlockShowInSearch) 757 if (m_scene.RegionInfo.RegionSettings.BlockShowInSearch)
758 flags |= (Simulator.RegionFlags)(1 << 29); 758 flags |= (RegionFlags)(1 << 29);
759 759
760 if (m_scene.RegionInfo.RegionSettings.FixedSun) 760 if (m_scene.RegionInfo.RegionSettings.FixedSun)
761 flags |= Simulator.RegionFlags.SunFixed; 761 flags |= RegionFlags.SunFixed;
762 if (m_scene.RegionInfo.RegionSettings.Sandbox) 762 if (m_scene.RegionInfo.RegionSettings.Sandbox)
763 flags |= Simulator.RegionFlags.Sandbox; 763 flags |= RegionFlags.Sandbox;
764 764
765 // Fudge these to always on, so the menu options activate 765 // Fudge these to always on, so the menu options activate
766 // 766 //
767 flags |= Simulator.RegionFlags.AllowLandmark; 767 flags |= RegionFlags.AllowLandmark;
768 flags |= Simulator.RegionFlags.AllowSetHome; 768 flags |= RegionFlags.AllowSetHome;
769 769
770 // TODO: SkipUpdateInterestList 770 // TODO: SkipUpdateInterestList
771 771
@@ -779,35 +779,35 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
779 779
780 public uint GetEstateFlags() 780 public uint GetEstateFlags()
781 { 781 {
782 Simulator.RegionFlags flags = Simulator.RegionFlags.None; 782 RegionFlags flags = RegionFlags.None;
783 783
784 if (m_scene.RegionInfo.EstateSettings.FixedSun) 784 if (m_scene.RegionInfo.EstateSettings.FixedSun)
785 flags |= Simulator.RegionFlags.SunFixed; 785 flags |= RegionFlags.SunFixed;
786 if (m_scene.RegionInfo.EstateSettings.PublicAccess) 786 if (m_scene.RegionInfo.EstateSettings.PublicAccess)
787 flags |= (Simulator.RegionFlags.PublicAllowed | 787 flags |= (RegionFlags.PublicAllowed |
788 Simulator.RegionFlags.ExternallyVisible); 788 RegionFlags.ExternallyVisible);
789 if (m_scene.RegionInfo.EstateSettings.AllowVoice) 789 if (m_scene.RegionInfo.EstateSettings.AllowVoice)
790 flags |= Simulator.RegionFlags.AllowVoice; 790 flags |= RegionFlags.AllowVoice;
791 if (m_scene.RegionInfo.EstateSettings.AllowDirectTeleport) 791 if (m_scene.RegionInfo.EstateSettings.AllowDirectTeleport)
792 flags |= Simulator.RegionFlags.AllowDirectTeleport; 792 flags |= RegionFlags.AllowDirectTeleport;
793 if (m_scene.RegionInfo.EstateSettings.DenyAnonymous) 793 if (m_scene.RegionInfo.EstateSettings.DenyAnonymous)
794 flags |= Simulator.RegionFlags.DenyAnonymous; 794 flags |= RegionFlags.DenyAnonymous;
795 if (m_scene.RegionInfo.EstateSettings.DenyIdentified) 795 if (m_scene.RegionInfo.EstateSettings.DenyIdentified)
796 flags |= Simulator.RegionFlags.DenyIdentified; 796 flags |= RegionFlags.DenyIdentified;
797 if (m_scene.RegionInfo.EstateSettings.DenyTransacted) 797 if (m_scene.RegionInfo.EstateSettings.DenyTransacted)
798 flags |= Simulator.RegionFlags.DenyTransacted; 798 flags |= RegionFlags.DenyTransacted;
799 if (m_scene.RegionInfo.EstateSettings.AbuseEmailToEstateOwner) 799 if (m_scene.RegionInfo.EstateSettings.AbuseEmailToEstateOwner)
800 flags |= Simulator.RegionFlags.AbuseEmailToEstateOwner; 800 flags |= RegionFlags.AbuseEmailToEstateOwner;
801 if (m_scene.RegionInfo.EstateSettings.BlockDwell) 801 if (m_scene.RegionInfo.EstateSettings.BlockDwell)
802 flags |= Simulator.RegionFlags.BlockDwell; 802 flags |= RegionFlags.BlockDwell;
803 if (m_scene.RegionInfo.EstateSettings.EstateSkipScripts) 803 if (m_scene.RegionInfo.EstateSettings.EstateSkipScripts)
804 flags |= Simulator.RegionFlags.EstateSkipScripts; 804 flags |= RegionFlags.EstateSkipScripts;
805 if (m_scene.RegionInfo.EstateSettings.ResetHomeOnTeleport) 805 if (m_scene.RegionInfo.EstateSettings.ResetHomeOnTeleport)
806 flags |= Simulator.RegionFlags.ResetHomeOnTeleport; 806 flags |= RegionFlags.ResetHomeOnTeleport;
807 if (m_scene.RegionInfo.EstateSettings.TaxFree) 807 if (m_scene.RegionInfo.EstateSettings.TaxFree)
808 flags |= Simulator.RegionFlags.TaxFree; 808 flags |= RegionFlags.TaxFree;
809 if (m_scene.RegionInfo.EstateSettings.DenyMinors) 809 if (m_scene.RegionInfo.EstateSettings.DenyMinors)
810 flags |= (Simulator.RegionFlags)(1 << 30); 810 flags |= (RegionFlags)(1 << 30);
811 811
812 return (uint)flags; 812 return (uint)flags;
813 } 813 }
diff --git a/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs b/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs
index bf51edb..6ab5a57 100644
--- a/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs
+++ b/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs
@@ -263,12 +263,12 @@ namespace OpenSim.Region.Environment.Modules.World.Land
263 { 263 {
264 if (checkBan.isBannedFromLand(avatar.AgentId)) 264 if (checkBan.isBannedFromLand(avatar.AgentId))
265 { 265 {
266 checkBan.sendLandProperties(-30000, false, (int)ParcelManager.ParcelResult.Single, avatar); 266 checkBan.sendLandProperties(-30000, false, (int)ParcelResult.Single, avatar);
267 return; //Only send one 267 return; //Only send one
268 } 268 }
269 if (checkBan.isRestrictedFromLand(avatar.AgentId)) 269 if (checkBan.isRestrictedFromLand(avatar.AgentId))
270 { 270 {
271 checkBan.sendLandProperties(-40000, false, (int)ParcelManager.ParcelResult.Single, avatar); 271 checkBan.sendLandProperties(-40000, false, (int)ParcelResult.Single, avatar);
272 return; //Only send one 272 return; //Only send one
273 } 273 }
274 } 274 }
diff --git a/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs b/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs
index 640b665..89d7b69 100644
--- a/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs
+++ b/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs
@@ -162,16 +162,16 @@ namespace OpenSim.Region.Environment.Modules.World.Land
162 public void sendLandProperties(int sequence_id, bool snap_selection, int request_result, IClientAPI remote_client) 162 public void sendLandProperties(int sequence_id, bool snap_selection, int request_result, IClientAPI remote_client)
163 { 163 {
164 IEstateModule estateModule = m_scene.RequestModuleInterface<IEstateModule>(); 164 IEstateModule estateModule = m_scene.RequestModuleInterface<IEstateModule>();
165 uint regionFlags = 336723974 & ~((uint)(Simulator.RegionFlags.AllowLandmark | Simulator.RegionFlags.AllowSetHome)); 165 uint regionFlags = 336723974 & ~((uint)(RegionFlags.AllowLandmark | RegionFlags.AllowSetHome));
166 if (estateModule != null) 166 if (estateModule != null)
167 regionFlags = estateModule.GetRegionFlags(); 167 regionFlags = estateModule.GetRegionFlags();
168 168
169 // In a perfect world, this would have worked. 169 // In a perfect world, this would have worked.
170 // 170 //
171// if ((landData.Flags & (uint)Parcel.ParcelFlags.AllowLandmark) != 0) 171// if ((landData.Flags & (uint)Parcel.ParcelFlags.AllowLandmark) != 0)
172// regionFlags |= (uint)Simulator.RegionFlags.AllowLandmark; 172// regionFlags |= (uint)RegionFlags.AllowLandmark;
173// if (landData.OwnerID == remote_client.AgentId) 173// if (landData.OwnerID == remote_client.AgentId)
174// regionFlags |= (uint)Simulator.RegionFlags.AllowSetHome; 174// regionFlags |= (uint)RegionFlags.AllowSetHome;
175 remote_client.SendLandProperties(remote_client, sequence_id, 175 remote_client.SendLandProperties(remote_client, sequence_id,
176 snap_selection, request_result, landData, 176 snap_selection, request_result, landData,
177 (float)m_scene.RegionInfo.RegionSettings.ObjectBonus, 177 (float)m_scene.RegionInfo.RegionSettings.ObjectBonus,
@@ -252,7 +252,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land
252 { 252 {
253 ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry(); 253 ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry();
254 entry.AgentID = avatar; 254 entry.AgentID = avatar;
255 entry.Flags = ParcelManager.AccessList.Ban; 255 entry.Flags = AccessList.Ban;
256 entry.Time = new DateTime(); 256 entry.Time = new DateTime();
257 if (landData.ParcelAccessList.Contains(entry)) 257 if (landData.ParcelAccessList.Contains(entry))
258 { 258 {
@@ -269,7 +269,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land
269 { 269 {
270 ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry(); 270 ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry();
271 entry.AgentID = avatar; 271 entry.AgentID = avatar;
272 entry.Flags = ParcelManager.AccessList.Access; 272 entry.Flags = AccessList.Access;
273 entry.Time = new DateTime(); 273 entry.Time = new DateTime();
274 if (!landData.ParcelAccessList.Contains(entry)) 274 if (!landData.ParcelAccessList.Contains(entry))
275 { 275 {
@@ -322,7 +322,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land
322 322
323 #region AccessList Functions 323 #region AccessList Functions
324 324
325 public List<UUID> createAccessListArrayByFlag(ParcelManager.AccessList flag) 325 public List<UUID> createAccessListArrayByFlag(AccessList flag)
326 { 326 {
327 List<UUID> list = new List<UUID>(); 327 List<UUID> list = new List<UUID>();
328 foreach (ParcelManager.ParcelAccessEntry entry in landData.ParcelAccessList) 328 foreach (ParcelManager.ParcelAccessEntry entry in landData.ParcelAccessList)
@@ -344,16 +344,16 @@ namespace OpenSim.Region.Environment.Modules.World.Land
344 IClientAPI remote_client) 344 IClientAPI remote_client)
345 { 345 {
346 346
347 if (flags == (uint) ParcelManager.AccessList.Access || flags == (uint) ParcelManager.AccessList.Both) 347 if (flags == (uint) AccessList.Access || flags == (uint) AccessList.Both)
348 { 348 {
349 List<UUID> avatars = createAccessListArrayByFlag(ParcelManager.AccessList.Access); 349 List<UUID> avatars = createAccessListArrayByFlag(AccessList.Access);
350 remote_client.SendLandAccessListData(avatars,(uint) ParcelManager.AccessList.Access,landData.LocalID); 350 remote_client.SendLandAccessListData(avatars,(uint) AccessList.Access,landData.LocalID);
351 } 351 }
352 352
353 if (flags == (uint) ParcelManager.AccessList.Ban || flags == (uint) ParcelManager.AccessList.Both) 353 if (flags == (uint) AccessList.Ban || flags == (uint) AccessList.Both)
354 { 354 {
355 List<UUID> avatars = createAccessListArrayByFlag(ParcelManager.AccessList.Ban); 355 List<UUID> avatars = createAccessListArrayByFlag(AccessList.Ban);
356 remote_client.SendLandAccessListData(avatars, (uint)ParcelManager.AccessList.Ban, landData.LocalID); 356 remote_client.SendLandAccessListData(avatars, (uint)AccessList.Ban, landData.LocalID);
357 } 357 }
358 } 358 }
359 359
@@ -369,7 +369,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land
369 List<ParcelManager.ParcelAccessEntry> toRemove = new List<ParcelManager.ParcelAccessEntry>(); 369 List<ParcelManager.ParcelAccessEntry> toRemove = new List<ParcelManager.ParcelAccessEntry>();
370 foreach (ParcelManager.ParcelAccessEntry entry in newData.ParcelAccessList) 370 foreach (ParcelManager.ParcelAccessEntry entry in newData.ParcelAccessList)
371 { 371 {
372 if (entry.Flags == (ParcelManager.AccessList) flags) 372 if (entry.Flags == (AccessList) flags)
373 { 373 {
374 toRemove.Add(entry); 374 toRemove.Add(entry);
375 } 375 }
@@ -384,7 +384,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land
384 ParcelManager.ParcelAccessEntry temp = new ParcelManager.ParcelAccessEntry(); 384 ParcelManager.ParcelAccessEntry temp = new ParcelManager.ParcelAccessEntry();
385 temp.AgentID = entry.AgentID; 385 temp.AgentID = entry.AgentID;
386 temp.Time = new DateTime(); //Pointless? Yes. 386 temp.Time = new DateTime(); //Pointless? Yes.
387 temp.Flags = (ParcelManager.AccessList) flags; 387 temp.Flags = (AccessList) flags;
388 388
389 if (!newData.ParcelAccessList.Contains(temp)) 389 if (!newData.ParcelAccessList.Contains(temp))
390 { 390 {
diff --git a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs
index a8ed498..92214b9 100644
--- a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs
+++ b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs
@@ -482,8 +482,7 @@ namespace OpenSim.Region.Environment.Modules.World.NPC
482 { 482 {
483 } 483 }
484 484
485 public virtual void SendWindData(float[] map) { } 485 public virtual void SendWindData(Vector2[] windSpeeds) { }
486 public virtual void SendWindData(int p1x, int p1y, int p2x, int p2y, float[] map) { }
487 486
488 public virtual void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look) 487 public virtual void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look)
489 { 488 {
diff --git a/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs b/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs
index fced389..5495c1d 100644
--- a/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs
+++ b/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs
@@ -45,7 +45,7 @@ namespace OpenSim.Region.Environment.Modules
45 private Random rndnums = new Random(System.Environment.TickCount); 45 private Random rndnums = new Random(System.Environment.TickCount);
46 private Scene m_scene = null; 46 private Scene m_scene = null;
47 private bool ready = false; 47 private bool ready = false;
48 private float[] windarr = new float[256*256]; 48 private Vector2[] windSpeeds = new Vector2[16 * 16];
49 49
50 private Dictionary<UUID, ulong> m_rootAgents = new Dictionary<UUID, ulong>(); 50 private Dictionary<UUID, ulong> m_rootAgents = new Dictionary<UUID, ulong>();
51 51
@@ -54,7 +54,6 @@ namespace OpenSim.Region.Environment.Modules
54 54
55 public void Initialise(Scene scene, IConfigSource config) 55 public void Initialise(Scene scene, IConfigSource config)
56 { 56 {
57
58 m_log.Debug("[WIND] Initializing"); 57 m_log.Debug("[WIND] Initializing");
59 58
60 m_scene = scene; 59 m_scene = scene;
@@ -120,15 +119,13 @@ namespace OpenSim.Region.Environment.Modules
120 119
121 public void WindToClient(IClientAPI client) 120 public void WindToClient(IClientAPI client)
122 { 121 {
123
124 if (ready) 122 if (ready)
125 { 123 {
126 //if (!sunFixed) 124 //if (!sunFixed)
127 //GenWindPos(); // Generate shared values once 125 //GenWindPos(); // Generate shared values once
128 client.SendWindData(windarr); 126 client.SendWindData(windSpeeds);
129 m_log.Debug("[WIND] Initial update for new client"); 127 m_log.Debug("[WIND] Initial update for new client");
130 } 128 }
131
132 } 129 }
133 130
134 public void WindUpdate() 131 public void WindUpdate()
@@ -149,11 +146,7 @@ namespace OpenSim.Region.Environment.Modules
149 { 146 {
150 if (!avatar.IsChildAgent) 147 if (!avatar.IsChildAgent)
151 { 148 {
152 149 avatar.ControllingClient.SendWindData(windSpeeds);
153 avatar.ControllingClient.SendWindData(
154 0,
155 0,0,1,
156 windarr);
157 } 150 }
158 } 151 }
159 152
@@ -169,7 +162,7 @@ namespace OpenSim.Region.Environment.Modules
169 foreach (ScenePresence avatar in avatars) 162 foreach (ScenePresence avatar in avatars)
170 { 163 {
171 if (!avatar.IsChildAgent) 164 if (!avatar.IsChildAgent)
172 avatar.ControllingClient.SendWindData(windarr); 165 avatar.ControllingClient.SendWindData(windSpeeds);
173 } 166 }
174 167
175 // set estate settings for region access to sun position 168 // set estate settings for region access to sun position
@@ -182,35 +175,14 @@ namespace OpenSim.Region.Environment.Modules
182 175
183 private void GenWindPos() 176 private void GenWindPos()
184 { 177 {
185 //windarr = new float[256*256]; 178 for (int y = 0; y < 16; y++)
186
187 Array.Clear(windarr, 0, 256 * 256);
188 //float i = 0f;
189 //float i2 = 2f;
190
191 for (int x = 0; x < 16; x++)
192 { 179 {
193 for (int y = 0; y < 16; y++) 180 for (int x = 0; x < 16; x++)
194 { 181 {
195 182 windSpeeds[y * 16 + x].X = (float)(rndnums.NextDouble() * 2d - 1d);
196 windarr[x * 256 + y] = (float)(rndnums.NextDouble() * 2d - 1d); 183 windSpeeds[y * 16 + x].Y = (float)(rndnums.NextDouble() * 2d - 1d);
197
198 } 184 }
199
200 } 185 }
201 for (int x = 16; x < 32; x++)
202 {
203 for (int y = 0; y < 16; y++)
204 {
205
206 windarr[x * 256 + y] = (float)(rndnums.NextDouble() * 2d - 1d);
207
208 }
209
210 }
211
212
213 // m_log.Debug("[SUN] Velocity("+Velocity.X+","+Velocity.Y+","+Velocity.Z+")");
214 } 186 }
215 187
216 private void ClientLoggedOut(UUID AgentId) 188 private void ClientLoggedOut(UUID AgentId)