diff options
author | Justin Clark-Casey (justincc) | 2012-03-21 00:23:46 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-03-21 00:23:46 +0000 |
commit | 022366a0745a8030a5a3b83c1aac89cb69068917 (patch) | |
tree | 75bb037a71d6a1e71cdcf1097634fa2f02716be4 /OpenSim/Region | |
parent | Add ability to log warn if a frame takes longer than twice the expected time.... (diff) | |
download | opensim-SC-022366a0745a8030a5a3b83c1aac89cb69068917.zip opensim-SC-022366a0745a8030a5a3b83c1aac89cb69068917.tar.gz opensim-SC-022366a0745a8030a5a3b83c1aac89cb69068917.tar.bz2 opensim-SC-022366a0745a8030a5a3b83c1aac89cb69068917.tar.xz |
refactor: simplify EstateManagementModule.handleEstateDebugRegionRequest()
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs index 4c6f73e..2a7338f 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | |||
@@ -660,28 +660,17 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
660 | TriggerEstateMessage(senderID, senderName, message); | 660 | TriggerEstateMessage(senderID, senderName, message); |
661 | } | 661 | } |
662 | 662 | ||
663 | private void handleEstateDebugRegionRequest(IClientAPI remote_client, UUID invoice, UUID senderID, bool scripted, bool collisionEvents, bool physics) | 663 | private void handleEstateDebugRegionRequest( |
664 | IClientAPI remote_client, UUID invoice, UUID senderID, | ||
665 | bool disableScripts, bool disableCollisions, bool disablePhysics) | ||
664 | { | 666 | { |
665 | if (physics) | 667 | Scene.RegionInfo.RegionSettings.DisablePhysics = disablePhysics; |
666 | Scene.RegionInfo.RegionSettings.DisablePhysics = true; | 668 | Scene.RegionInfo.RegionSettings.DisableScripts = disableScripts; |
667 | else | 669 | Scene.RegionInfo.RegionSettings.DisableCollisions = disableCollisions; |
668 | Scene.RegionInfo.RegionSettings.DisablePhysics = false; | ||
669 | |||
670 | if (scripted) | ||
671 | Scene.RegionInfo.RegionSettings.DisableScripts = true; | ||
672 | else | ||
673 | Scene.RegionInfo.RegionSettings.DisableScripts = false; | ||
674 | |||
675 | if (collisionEvents) | ||
676 | Scene.RegionInfo.RegionSettings.DisableCollisions = true; | ||
677 | else | ||
678 | Scene.RegionInfo.RegionSettings.DisableCollisions = false; | ||
679 | |||
680 | |||
681 | Scene.RegionInfo.RegionSettings.Save(); | 670 | Scene.RegionInfo.RegionSettings.Save(); |
682 | TriggerRegionInfoChange(); | 671 | TriggerRegionInfoChange(); |
683 | 672 | ||
684 | Scene.SetSceneCoreDebug(scripted, collisionEvents, physics); | 673 | Scene.SetSceneCoreDebug(scriptsOn, collisionsOn, physicsOn); |
685 | } | 674 | } |
686 | 675 | ||
687 | private void handleEstateTeleportOneUserHomeRequest(IClientAPI remover_client, UUID invoice, UUID senderID, UUID prey) | 676 | private void handleEstateTeleportOneUserHomeRequest(IClientAPI remover_client, UUID invoice, UUID senderID, UUID prey) |