aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-05-07 21:50:37 +0000
committerTeravus Ovares2008-05-07 21:50:37 +0000
commit28e6e018a22123015d6911485def68d252ec23d8 (patch)
treeb21304a755192013ac4c260f4b2bdfa39b1f6765 /OpenSim/Region/Environment/Scenes/ScenePresence.cs
parent* Fix minor local inventory service log typo (diff)
downloadopensim-SC-28e6e018a22123015d6911485def68d252ec23d8.zip
opensim-SC-28e6e018a22123015d6911485def68d252ec23d8.tar.gz
opensim-SC-28e6e018a22123015d6911485def68d252ec23d8.tar.bz2
opensim-SC-28e6e018a22123015d6911485def68d252ec23d8.tar.xz
* Doh! scripts that get controls should get controls even when you're sitting on an object.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs18
1 files changed, 9 insertions, 9 deletions
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
index 9732d05..052b85a 100644
--- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
@@ -797,7 +797,15 @@ namespace OpenSim.Region.Environment.Scenes
797 { 797 {
798 StandUp(); 798 StandUp();
799 } 799 }
800 lock (scriptedcontrols)
801 {
802 if (scriptedcontrols.Count > 0)
803 {
804 SendControlToScripts(flags, LastCommands);
805 flags = this.RemoveIgnoredControls(flags, IgnoredControls);
800 806
807 }
808 }
801 if (PhysicsActor == null) 809 if (PhysicsActor == null)
802 { 810 {
803 return; 811 return;
@@ -817,15 +825,7 @@ namespace OpenSim.Region.Environment.Scenes
817 // m_state = agentData.AgentData.State; 825 // m_state = agentData.AgentData.State;
818 826
819 827
820 lock (scriptedcontrols) 828
821 {
822 if (scriptedcontrols.Count > 0)
823 {
824 SendControlToScripts(flags, LastCommands);
825 flags = this.RemoveIgnoredControls(flags, IgnoredControls);
826
827 }
828 }
829 829
830 830
831 if (m_allowMovement) 831 if (m_allowMovement)