aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-10-29 00:29:11 +0000
committerJustin Clark-Casey (justincc)2014-11-25 23:23:09 +0000
commitb53be022f26cb32c36070ffb028378d587e8762f (patch)
tree87a0d5107bbc6d373db240625526c07bf355f7c6 /OpenSim/Tools
parentAdd "wearables check" console command (diff)
downloadopensim-SC_OLD-b53be022f26cb32c36070ffb028378d587e8762f.zip
opensim-SC_OLD-b53be022f26cb32c36070ffb028378d587e8762f.tar.gz
opensim-SC_OLD-b53be022f26cb32c36070ffb028378d587e8762f.tar.bz2
opensim-SC_OLD-b53be022f26cb32c36070ffb028378d587e8762f.tar.xz
On pCampbot, if we add the none (n) behaviour then make it actually stop any bots in motion.
Previously, adding this behaviour after physics (p) would leave the bot to drift off for ever in its last movement direction.
Diffstat (limited to 'OpenSim/Tools')
-rw-r--r--OpenSim/Tools/pCampBot/Behaviours/NoneBehaviour.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Tools/pCampBot/Behaviours/NoneBehaviour.cs b/OpenSim/Tools/pCampBot/Behaviours/NoneBehaviour.cs
index 4a7237c..0d43781 100644
--- a/OpenSim/Tools/pCampBot/Behaviours/NoneBehaviour.cs
+++ b/OpenSim/Tools/pCampBot/Behaviours/NoneBehaviour.cs
@@ -46,7 +46,10 @@ namespace pCampBot
46 46
47 public override void Action() 47 public override void Action()
48 { 48 {
49 Bot.Client.Self.Jump(false);
50 Bot.Client.Self.Movement.Stop = true;
49 m_interruptEvent.WaitOne(); 51 m_interruptEvent.WaitOne();
52 Bot.Client.Self.Movement.Stop = false;
50 } 53 }
51 54
52 public override void Interrupt() 55 public override void Interrupt()