diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 7a14f2a..cec21d8 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -4668,6 +4668,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
4668 | { | 4668 | { |
4669 | cAgent.CrossingFlags = crossingFlags; | 4669 | cAgent.CrossingFlags = crossingFlags; |
4670 | cAgent.CrossingFlags |= 1; | 4670 | cAgent.CrossingFlags |= 1; |
4671 | cAgent.CrossExtraFlags = 0; | ||
4672 | if((LastCommands & ScriptControlled.CONTROL_LBUTTON) != 0) | ||
4673 | cAgent.CrossExtraFlags |= 1; | ||
4674 | if((LastCommands & ScriptControlled.CONTROL_ML_LBUTTON) != 0) | ||
4675 | cAgent.CrossExtraFlags |= 2; | ||
4671 | } | 4676 | } |
4672 | else | 4677 | else |
4673 | cAgent.CrossingFlags = 0; | 4678 | cAgent.CrossingFlags = 0; |
@@ -4782,6 +4787,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
4782 | 4787 | ||
4783 | crossingFlags = cAgent.CrossingFlags; | 4788 | crossingFlags = cAgent.CrossingFlags; |
4784 | gotCrossUpdate = (crossingFlags != 0); | 4789 | gotCrossUpdate = (crossingFlags != 0); |
4790 | if(gotCrossUpdate) | ||
4791 | { | ||
4792 | LastCommands &= ~(ScriptControlled.CONTROL_LBUTTON | ScriptControlled.CONTROL_ML_LBUTTON); | ||
4793 | if((cAgent.CrossExtraFlags & 1) != 0) | ||
4794 | LastCommands |= ScriptControlled.CONTROL_LBUTTON; | ||
4795 | if((cAgent.CrossExtraFlags & 2) != 0) | ||
4796 | LastCommands |= ScriptControlled.CONTROL_ML_LBUTTON; | ||
4797 | MouseDown = (cAgent.CrossExtraFlags & 3) != 0; | ||
4798 | } | ||
4785 | 4799 | ||
4786 | haveGroupInformation = false; | 4800 | haveGroupInformation = false; |
4787 | // using this as protocol detection don't want to mess with the numbers for now | 4801 | // using this as protocol detection don't want to mess with the numbers for now |