aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/EstateManager.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-02-06 09:38:14 +0000
committerTeravus Ovares2008-02-06 09:38:14 +0000
commit9d6ea497e27bb2c93211fe2899e609ea9ea18623 (patch)
tree930777aa2d9cf39c8ba54dc81d89771c21b969d4 /OpenSim/Region/Environment/EstateManager.cs
parentCleaned up some unreachable code warnings. (diff)
downloadopensim-SC-9d6ea497e27bb2c93211fe2899e609ea9ea18623.zip
opensim-SC-9d6ea497e27bb2c93211fe2899e609ea9ea18623.tar.gz
opensim-SC-9d6ea497e27bb2c93211fe2899e609ea9ea18623.tar.bz2
opensim-SC-9d6ea497e27bb2c93211fe2899e609ea9ea18623.tar.xz
* Added the ability to start and stop all scripts in the simulator using the debug tab on the estate tools. This along with the disable physics via the debug tab are persistant across reboots. That means that if it's disabled when you shut down the simulator, the simulator will come up again when you start it up without loading the scripts. Turning them back on is as simple as unchecking 'disable scripts' in the debug tab of the estate tools.
Diffstat (limited to 'OpenSim/Region/Environment/EstateManager.cs')
-rw-r--r--OpenSim/Region/Environment/EstateManager.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/EstateManager.cs b/OpenSim/Region/Environment/EstateManager.cs
index 860bd93..96baf21 100644
--- a/OpenSim/Region/Environment/EstateManager.cs
+++ b/OpenSim/Region/Environment/EstateManager.cs
@@ -237,6 +237,26 @@ namespace OpenSim.Region.Environment
237 bool scripted = convertParamStringToBool(packet.ParamList[0].Parameter); 237 bool scripted = convertParamStringToBool(packet.ParamList[0].Parameter);
238 bool collisionEvents = convertParamStringToBool(packet.ParamList[1].Parameter); 238 bool collisionEvents = convertParamStringToBool(packet.ParamList[1].Parameter);
239 bool physics = convertParamStringToBool(packet.ParamList[2].Parameter); 239 bool physics = convertParamStringToBool(packet.ParamList[2].Parameter);
240
241 if (physics)
242 {
243 m_scene.RegionInfo.EstateSettings.regionFlags |= Simulator.RegionFlags.SkipPhysics;
244 }
245 else
246 {
247 m_scene.RegionInfo.EstateSettings.regionFlags &= ~Simulator.RegionFlags.SkipPhysics;
248 }
249
250 if (scripted)
251 {
252 m_scene.RegionInfo.EstateSettings.regionFlags |= Simulator.RegionFlags.SkipScripts;
253 }
254 else
255 {
256 m_scene.RegionInfo.EstateSettings.regionFlags &= ~Simulator.RegionFlags.SkipScripts;
257 }
258
259
240 m_scene.SetSceneCoreDebug(scripted, collisionEvents, physics); 260 m_scene.SetSceneCoreDebug(scripted, collisionEvents, physics);
241 } 261 }
242 262