mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
tweaking configuration logic so that the INonSharedRegionModule will load by default
This commit is contained in:
committed by
Justin Clark-Casey (justincc)
parent
2bb0419251
commit
e0b5a3cd90
@@ -58,10 +58,15 @@ namespace OpenSim.Region.CoreModules.World.Sound
|
||||
IConfig config = configSource.Configs["Sounds"];
|
||||
|
||||
if (config == null)
|
||||
return;
|
||||
|
||||
Enabled = config.GetString("Module", "SoundModuleNonShared") == "SoundModuleNonShared";
|
||||
MaxDistance = config.GetFloat("MaxDistance", 100.0f);
|
||||
{
|
||||
Enabled = true;
|
||||
MaxDistance = 100.0f;
|
||||
}
|
||||
else
|
||||
{
|
||||
Enabled = config.GetString("Module", "SoundModuleNonShared") == "SoundModuleNonShared";
|
||||
MaxDistance = config.GetFloat("MaxDistance", 100.0f);
|
||||
}
|
||||
}
|
||||
|
||||
public void AddRegion(Scene scene) { }
|
||||
|
||||
Reference in New Issue
Block a user