diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Application/OpenSimBase.cs | 43 |
1 files changed, 3 insertions, 40 deletions
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index 1ec96a0..ba2c2de 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs | |||
@@ -36,8 +36,7 @@ using Nini.Config; | |||
36 | using OpenMetaverse; | 36 | using OpenMetaverse; |
37 | using OpenSim.Framework; | 37 | using OpenSim.Framework; |
38 | using OpenSim.Framework.Communications; | 38 | using OpenSim.Framework.Communications; |
39 | using OpenSim.Framework.Communications.Services; | 39 | |
40 | using OpenSim.Framework.Communications.Cache; | ||
41 | using OpenSim.Framework.Console; | 40 | using OpenSim.Framework.Console; |
42 | using OpenSim.Framework.Servers; | 41 | using OpenSim.Framework.Servers; |
43 | using OpenSim.Framework.Servers.HttpServer; | 42 | using OpenSim.Framework.Servers.HttpServer; |
@@ -85,8 +84,6 @@ namespace OpenSim | |||
85 | 84 | ||
86 | protected ConfigurationLoader m_configLoader; | 85 | protected ConfigurationLoader m_configLoader; |
87 | 86 | ||
88 | protected GridInfoService m_gridInfoService; | ||
89 | |||
90 | public ConsoleCommand CreateAccount = null; | 87 | public ConsoleCommand CreateAccount = null; |
91 | 88 | ||
92 | protected List<IApplicationPlugin> m_plugins = new List<IApplicationPlugin>(); | 89 | protected List<IApplicationPlugin> m_plugins = new List<IApplicationPlugin>(); |
@@ -604,35 +601,6 @@ namespace OpenSim | |||
604 | scene.PhysicsScene.SetTerrain(scene.Heightmap.GetFloatsSerialised()); | 601 | scene.PhysicsScene.SetTerrain(scene.Heightmap.GetFloatsSerialised()); |
605 | scene.PhysicsScene.SetWaterLevel((float) regionInfo.RegionSettings.WaterHeight); | 602 | scene.PhysicsScene.SetWaterLevel((float) regionInfo.RegionSettings.WaterHeight); |
606 | 603 | ||
607 | // TODO: Remove this cruft once MasterAvatar is fully deprecated | ||
608 | //Master Avatar Setup | ||
609 | UserProfileData masterAvatar; | ||
610 | if (scene.RegionInfo.MasterAvatarAssignedUUID == UUID.Zero) | ||
611 | { | ||
612 | masterAvatar = | ||
613 | m_commsManager.UserService.SetupMasterUser(scene.RegionInfo.MasterAvatarFirstName, | ||
614 | scene.RegionInfo.MasterAvatarLastName, | ||
615 | scene.RegionInfo.MasterAvatarSandboxPassword); | ||
616 | } | ||
617 | else | ||
618 | { | ||
619 | masterAvatar = m_commsManager.UserService.SetupMasterUser(scene.RegionInfo.MasterAvatarAssignedUUID); | ||
620 | scene.RegionInfo.MasterAvatarFirstName = masterAvatar.FirstName; | ||
621 | scene.RegionInfo.MasterAvatarLastName = masterAvatar.SurName; | ||
622 | } | ||
623 | |||
624 | if (masterAvatar == null) | ||
625 | { | ||
626 | m_log.Info("[PARCEL]: No master avatar found, using null."); | ||
627 | scene.RegionInfo.MasterAvatarAssignedUUID = UUID.Zero; | ||
628 | } | ||
629 | else | ||
630 | { | ||
631 | m_log.InfoFormat("[PARCEL]: Found master avatar {0} {1} [" + masterAvatar.ID.ToString() + "]", | ||
632 | scene.RegionInfo.MasterAvatarFirstName, scene.RegionInfo.MasterAvatarLastName); | ||
633 | scene.RegionInfo.MasterAvatarAssignedUUID = masterAvatar.ID; | ||
634 | } | ||
635 | |||
636 | return scene; | 604 | return scene; |
637 | } | 605 | } |
638 | 606 | ||
@@ -655,15 +623,10 @@ namespace OpenSim | |||
655 | protected override Scene CreateScene(RegionInfo regionInfo, StorageManager storageManager, | 623 | protected override Scene CreateScene(RegionInfo regionInfo, StorageManager storageManager, |
656 | AgentCircuitManager circuitManager) | 624 | AgentCircuitManager circuitManager) |
657 | { | 625 | { |
658 | bool hgrid = ConfigSource.Source.Configs["Startup"].GetBoolean("hypergrid", false); | 626 | SceneCommunicationService sceneGridService = new SceneCommunicationService(); |
659 | if (hgrid) | ||
660 | return HGCommands.CreateScene(regionInfo, circuitManager, m_commsManager, | ||
661 | storageManager, m_moduleLoader, m_configSettings, m_config, m_version); | ||
662 | |||
663 | SceneCommunicationService sceneGridService = new SceneCommunicationService(m_commsManager); | ||
664 | 627 | ||
665 | return new Scene( | 628 | return new Scene( |
666 | regionInfo, circuitManager, m_commsManager, sceneGridService, | 629 | regionInfo, circuitManager, sceneGridService, |
667 | storageManager, m_moduleLoader, false, m_configSettings.PhysicalPrim, | 630 | storageManager, m_moduleLoader, false, m_configSettings.PhysicalPrim, |
668 | m_configSettings.See_into_region_from_neighbor, m_config.Source, m_version); | 631 | m_configSettings.See_into_region_from_neighbor, m_config.Source, m_version); |
669 | } | 632 | } |