diff options
a few small changes
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r-- | OpenSim/Region/Environment/Interfaces/IAvatarFactory.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Modules/ChatModule.cs | 14 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 21 |
3 files changed, 20 insertions, 17 deletions
diff --git a/OpenSim/Region/Environment/Interfaces/IAvatarFactory.cs b/OpenSim/Region/Environment/Interfaces/IAvatarFactory.cs index a42f1dc..3ebbaab 100644 --- a/OpenSim/Region/Environment/Interfaces/IAvatarFactory.cs +++ b/OpenSim/Region/Environment/Interfaces/IAvatarFactory.cs | |||
@@ -30,7 +30,7 @@ using OpenSim.Region.Environment.Scenes; | |||
30 | 30 | ||
31 | namespace OpenSim.Region.Environment.Interfaces | 31 | namespace OpenSim.Region.Environment.Interfaces |
32 | { | 32 | { |
33 | public interface IAvatarFactory : IRegionModule | 33 | public interface IAvatarFactory |
34 | { | 34 | { |
35 | bool TryGetAvatarAppearance(LLUUID avatarId, out AvatarAppearance appearance); | 35 | bool TryGetAvatarAppearance(LLUUID avatarId, out AvatarAppearance appearance); |
36 | void UpdateDatabase(LLUUID userID, AvatarAppearance avatAppearance); | 36 | void UpdateDatabase(LLUUID userID, AvatarAppearance avatAppearance); |
diff --git a/OpenSim/Region/Environment/Modules/ChatModule.cs b/OpenSim/Region/Environment/Modules/ChatModule.cs index ab6b791..08c0a11 100644 --- a/OpenSim/Region/Environment/Modules/ChatModule.cs +++ b/OpenSim/Region/Environment/Modules/ChatModule.cs | |||
@@ -62,6 +62,13 @@ namespace OpenSim.Region.Environment.Modules | |||
62 | { | 62 | { |
63 | lock (m_syncInit) | 63 | lock (m_syncInit) |
64 | { | 64 | { |
65 | if (!m_scenes.Contains(scene)) | ||
66 | { | ||
67 | m_scenes.Add(scene); | ||
68 | scene.EventManager.OnNewClient += NewClient; | ||
69 | scene.RegisterModuleInterface<ISimChat>(this); | ||
70 | } | ||
71 | |||
65 | // wrap this in a try block so that defaults will work if | 72 | // wrap this in a try block so that defaults will work if |
66 | // the config file doesn't specify otherwise. | 73 | // the config file doesn't specify otherwise. |
67 | try | 74 | try |
@@ -82,13 +89,6 @@ namespace OpenSim.Region.Environment.Modules | |||
82 | { | 89 | { |
83 | } | 90 | } |
84 | 91 | ||
85 | if (!m_scenes.Contains(scene)) | ||
86 | { | ||
87 | m_scenes.Add(scene); | ||
88 | scene.EventManager.OnNewClient += NewClient; | ||
89 | scene.RegisterModuleInterface<ISimChat>(this); | ||
90 | } | ||
91 | |||
92 | // setup IRC Relay | 92 | // setup IRC Relay |
93 | if (m_irc == null) { m_irc = new IRCChatModule(config); } | 93 | if (m_irc == null) { m_irc = new IRCChatModule(config); } |
94 | if (m_irc_connector == null) | 94 | if (m_irc_connector == null) |
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 2fa0459..7ee0478 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -986,15 +986,18 @@ namespace OpenSim.Region.Environment.Scenes | |||
986 | if (terrain != null) | 986 | if (terrain != null) |
987 | { | 987 | { |
988 | byte[] data = terrain.WriteJpegImage("defaultstripe.png"); | 988 | byte[] data = terrain.WriteJpegImage("defaultstripe.png"); |
989 | m_regInfo.EstateSettings.terrainImageID = LLUUID.Random(); | 989 | if (data != null) |
990 | AssetBase asset = new AssetBase(); | 990 | { |
991 | asset.FullID = m_regInfo.EstateSettings.terrainImageID; | 991 | m_regInfo.EstateSettings.terrainImageID = LLUUID.Random(); |
992 | asset.Data = data; | 992 | AssetBase asset = new AssetBase(); |
993 | asset.Name = "terrainImage"; | 993 | asset.FullID = m_regInfo.EstateSettings.terrainImageID; |
994 | asset.Description = RegionInfo.RegionName; | 994 | asset.Data = data; |
995 | asset.Type = 0; | 995 | asset.Name = "terrainImage"; |
996 | asset.Temporary = temporary; | 996 | asset.Description = RegionInfo.RegionName; |
997 | AssetCache.AddAsset(asset); | 997 | asset.Type = 0; |
998 | asset.Temporary = temporary; | ||
999 | AssetCache.AddAsset(asset); | ||
1000 | } | ||
998 | } | 1001 | } |
999 | 1002 | ||
1000 | } | 1003 | } |