Formatting cleanup.
parent
123884aefe
commit
cce451d9de
|
@ -68,13 +68,13 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
|||
m_log.Info("[MRM] Enabling MRM Module");
|
||||
m_scene = scene;
|
||||
|
||||
// when hidden, we don't listen for client initiated script events
|
||||
// only making the MRM engine available for region modules
|
||||
if(!source.Configs["MRM"].GetBoolean("Hidden", false))
|
||||
{
|
||||
scene.EventManager.OnRezScript += EventManager_OnRezScript;
|
||||
}
|
||||
|
||||
// when hidden, we don't listen for client initiated script events
|
||||
// only making the MRM engine available for region modules
|
||||
if (!source.Configs["MRM"].GetBoolean("Hidden", false))
|
||||
{
|
||||
scene.EventManager.OnRezScript += EventManager_OnRezScript;
|
||||
}
|
||||
|
||||
scene.EventManager.OnFrame += EventManager_OnFrame;
|
||||
|
||||
scene.RegisterModuleInterface<IMRMModule>(this);
|
||||
|
@ -198,7 +198,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
|||
/// <returns></returns>
|
||||
internal string CompileFromDotNetText(string Script, string uuid)
|
||||
{
|
||||
m_log.Info("MRM 1");
|
||||
m_log.Info("MRM 1");
|
||||
const string ext = ".cs";
|
||||
const string FilePrefix = "MiniModule";
|
||||
|
||||
|
|
|
@ -1862,14 +1862,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
|
||||
if (part.ParentGroup == null)
|
||||
{
|
||||
if ((targetPos.z < ground) && disable_underground_movement)
|
||||
targetPos.z = ground;
|
||||
if ((targetPos.z < ground) && disable_underground_movement)
|
||||
targetPos.z = ground;
|
||||
part.UpdateOffSet(new Vector3((float)targetPos.x, (float)targetPos.y, (float)targetPos.z));
|
||||
}
|
||||
else if (part.ParentGroup.RootPart == part)
|
||||
{
|
||||
if ((targetPos.z < ground) && disable_underground_movement)
|
||||
targetPos.z = ground;
|
||||
if ((targetPos.z < ground) && disable_underground_movement)
|
||||
targetPos.z = ground;
|
||||
SceneObjectGroup parent = part.ParentGroup;
|
||||
parent.UpdateGroupPosition(new Vector3((float)targetPos.x, (float)targetPos.y, (float)targetPos.z));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue