diff options
author | Justin Clark-Casey (justincc) | 2012-03-15 01:32:16 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-03-15 01:32:16 +0000 |
commit | 2d32401e23f216565f64163fb3220d035e45b0a8 (patch) | |
tree | fa78b766098f14efd7fc66214a050cf9570d8d9d /OpenSim/Region/ScriptEngine/Shared/Instance | |
parent | minor: correct indentation levels (diff) | |
download | opensim-SC-2d32401e23f216565f64163fb3220d035e45b0a8.zip opensim-SC-2d32401e23f216565f64163fb3220d035e45b0a8.tar.gz opensim-SC-2d32401e23f216565f64163fb3220d035e45b0a8.tar.bz2 opensim-SC-2d32401e23f216565f64163fb3220d035e45b0a8.tar.xz |
Simplify some logic in the ScriptInstance constructor - running is set to false in both if/else branches
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Instance')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs index afa9191..8b0dbaa 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | |||
@@ -363,15 +363,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
363 | part.SetScriptEvents(m_ItemID, | 363 | part.SetScriptEvents(m_ItemID, |
364 | (int)m_Script.GetStateEventFlags(State)); | 364 | (int)m_Script.GetStateEventFlags(State)); |
365 | 365 | ||
366 | if (Running && (!m_ShuttingDown)) | 366 | Running = false; |
367 | { | 367 | |
368 | Running = false; | 368 | if (m_ShuttingDown) |
369 | } | ||
370 | else | ||
371 | { | ||
372 | Running = false; | ||
373 | m_startOnInit = false; | 369 | m_startOnInit = false; |
374 | } | ||
375 | 370 | ||
376 | // we get new rez events on sim restart, too | 371 | // we get new rez events on sim restart, too |
377 | // but if there is state, then we fire the change | 372 | // but if there is state, then we fire the change |
@@ -380,7 +375,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
380 | // We loaded state, don't force a re-save | 375 | // We loaded state, don't force a re-save |
381 | m_SaveState = false; | 376 | m_SaveState = false; |
382 | m_startedFromSavedState = true; | 377 | m_startedFromSavedState = true; |
383 | |||
384 | } | 378 | } |
385 | } | 379 | } |
386 | else | 380 | else |