diff options
author | SignpostMarv | 2012-10-16 15:15:03 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-10-29 23:39:01 +0000 |
commit | e0b5a3cd900d8ad29cdb7d43415b069d5484a424 (patch) | |
tree | e2911886b9e9f9b7bb3e7afa0eafe1d52b8601c7 /OpenSim/Region | |
parent | documenting some params on ISoundModule methods (diff) | |
download | opensim-SC_OLD-e0b5a3cd900d8ad29cdb7d43415b069d5484a424.zip opensim-SC_OLD-e0b5a3cd900d8ad29cdb7d43415b069d5484a424.tar.gz opensim-SC_OLD-e0b5a3cd900d8ad29cdb7d43415b069d5484a424.tar.bz2 opensim-SC_OLD-e0b5a3cd900d8ad29cdb7d43415b069d5484a424.tar.xz |
tweaking configuration logic so that the INonSharedRegionModule will load by default
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Sound/SoundModuleNonShared.cs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/World/Sound/SoundModuleNonShared.cs b/OpenSim/Region/CoreModules/World/Sound/SoundModuleNonShared.cs index ac7f7b4..68bd413 100644 --- a/OpenSim/Region/CoreModules/World/Sound/SoundModuleNonShared.cs +++ b/OpenSim/Region/CoreModules/World/Sound/SoundModuleNonShared.cs | |||
@@ -58,10 +58,15 @@ namespace OpenSim.Region.CoreModules.World.Sound | |||
58 | IConfig config = configSource.Configs["Sounds"]; | 58 | IConfig config = configSource.Configs["Sounds"]; |
59 | 59 | ||
60 | if (config == null) | 60 | if (config == null) |
61 | return; | 61 | { |
62 | 62 | Enabled = true; | |
63 | Enabled = config.GetString("Module", "SoundModuleNonShared") == "SoundModuleNonShared"; | 63 | MaxDistance = 100.0f; |
64 | MaxDistance = config.GetFloat("MaxDistance", 100.0f); | 64 | } |
65 | else | ||
66 | { | ||
67 | Enabled = config.GetString("Module", "SoundModuleNonShared") == "SoundModuleNonShared"; | ||
68 | MaxDistance = config.GetFloat("MaxDistance", 100.0f); | ||
69 | } | ||
65 | } | 70 | } |
66 | 71 | ||
67 | public void AddRegion(Scene scene) { } | 72 | public void AddRegion(Scene scene) { } |