From 4c0ddacc160f3c25343eba73d2c2b026dfbbf67d Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Mon, 3 Dec 2007 07:26:27 +0000 Subject: minor meaningless changes --- OpenSim/Region/Environment/Scenes/Scene.cs | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes') diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 19e0064..38cfc8c 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -251,7 +251,6 @@ namespace OpenSim.Region.Environment.Scenes httpListener = httpServer; m_dumpAssetsToFile = dumpAssetsToFile; - } #endregion @@ -311,8 +310,6 @@ namespace OpenSim.Region.Environment.Scenes m_restartTimer.Start(); SendGeneralAlert(RegionInfo.RegionName + ": Restarting in 2 Minutes"); } - - } public void RestartTimer_Elapsed(object sender, ElapsedEventArgs e) @@ -329,7 +326,6 @@ namespace OpenSim.Region.Environment.Scenes m_restartTimer.AutoReset = false; RestartNow(); } - } public void RestartNow() @@ -391,7 +387,6 @@ namespace OpenSim.Region.Environment.Scenes avatar.ControllingClient.Stop(); }); - m_heartbeatTimer.Close(); m_innerScene.Close(); @@ -407,7 +402,6 @@ namespace OpenSim.Region.Environment.Scenes Modules.Clear(); base.Close(); - } /// @@ -568,7 +562,6 @@ namespace OpenSim.Region.Environment.Scenes } }); - Terrain.ResetTaint(); } } @@ -631,7 +624,7 @@ namespace OpenSim.Region.Environment.Scenes } } - foreach(AssetBase asset in textures) + foreach (AssetBase asset in textures) { System.Drawing.Image image= OpenJPEGNet.OpenJPEG.DecodeToImage(asset.Data); bitImages.Add(image); @@ -642,7 +635,7 @@ namespace OpenSim.Region.Environment.Scenes System.Drawing.SolidBrush sea = new System.Drawing.SolidBrush(System.Drawing.Color.DarkBlue); g.FillRectangle(sea, 0, 0, 2560, 2560); - for(int i =0; i public virtual void AddNewPrim(LLUUID ownerID, LLVector3 pos, LLQuaternion rot, PrimitiveBaseShape shape) { - // What we're *supposed* to do is raytrace from the camera position given by the client to the nearest collision // in the direction the client supplies (the ground level that we clicked) // This function is pretty crappy right now.. so we're not affecting where the newly rezzed objects go @@ -813,7 +803,6 @@ namespace OpenSim.Region.Environment.Scenes Ray rezRay = new Ray(CameraPosition, rayDirection); - Vector3 RezDirectionFromCamera = rezRay.Direction; EntityIntersection rayTracing = m_innerScene.GetClosestIntersectingPrim(rezRay); @@ -838,14 +827,12 @@ namespace OpenSim.Region.Environment.Scenes MainLog.Instance.Verbose("REZINFO", "Possible Rez Point:" + RezPoint.ToString()); //pos = new LLVector3(RezPoint.x, RezPoint.y, RezPoint.z); - } else { // rez ON the ground, not IN the ground pos.Z += 0.25F; } - SceneObjectGroup sceneOb = new SceneObjectGroup(this, m_regionHandle, ownerID, PrimIDAllocate(), pos, rot, shape); @@ -871,7 +858,6 @@ namespace OpenSim.Region.Environment.Scenes new Quaternion(), UsePhysics); // subscribe to physics events. rootPart.DoPhysicsPropertyUpdate(UsePhysics, true); - } } } @@ -1037,13 +1023,12 @@ namespace OpenSim.Region.Environment.Scenes protected void LoadAvatarAppearance(IClientAPI client, out byte[] visualParams, out AvatarWearable[] wearables) { if (m_AvatarFactory == null || - !m_AvatarFactory.TryGetIntialAvatarAppearance(client.AgentId, out wearables, out visualParams)) + !m_AvatarFactory.TryGetInitialAvatarAppearance(client.AgentId, out wearables, out visualParams)) { AvatarFactoryModule.GetDefaultAvatarAppearance(out wearables, out visualParams); } } - /// /// /// @@ -1066,7 +1051,6 @@ namespace OpenSim.Region.Environment.Scenes } }); - ForEachScenePresence( delegate(ScenePresence presence) { presence.CoarseLocationChange(); }); @@ -1096,8 +1080,6 @@ namespace OpenSim.Region.Environment.Scenes // Remove client agent from profile, so new logins will work CommsManager.UserService.clearUserAgent(agentID); - - return; } public void NotifyMyCoarseLocationChange() @@ -1223,6 +1205,7 @@ namespace OpenSim.Region.Environment.Scenes { m_sceneGridService.EnableNeighbourChildAgents(presence); } + public void InformClientOfNeighbor(ScenePresence presence, RegionInfo region) { m_sceneGridService.InformNeighborChildAgent(presence, region); @@ -1281,6 +1264,7 @@ namespace OpenSim.Region.Environment.Scenes #endregion #region Module Methods + public void AddModule(string name, IRegionModule module) { if (!Modules.ContainsKey(name)) @@ -1308,9 +1292,11 @@ namespace OpenSim.Region.Environment.Scenes return default(T); } } + #endregion #region Other Methods + public void SetTimePhase(int phase) { m_timePhase = phase; @@ -1343,7 +1329,6 @@ namespace OpenSim.Region.Environment.Scenes m_LandManager.landPrimCountTainted = false; } - public void addPrimsToParcelCounts() { foreach (EntityBase obj in Entities.Values) @@ -1409,7 +1394,6 @@ namespace OpenSim.Region.Environment.Scenes { m_scenePresences[agentID].ControllingClient.SendAgentAlertMessage("Request for god powers denied", false); } - } public void handleGodlikeKickUser(LLUUID godid, LLUUID sessionid, LLUUID agentid, uint kickflags, byte[] reason) -- cgit v1.1