diff options
author | Justin Clark-Casey (justincc) | 2013-09-03 19:58:27 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-09-03 19:58:27 +0100 |
commit | b781a23c445bea0fd199eb756ebf6143959256a6 (patch) | |
tree | c8fbabf67f7ad47c7a6f6eed3456184a823fd04f /OpenSim/Tools | |
parent | Make pCampbot "add behaviour" and "remove behaviour" console commands work fo... (diff) | |
download | opensim-SC-b781a23c445bea0fd199eb756ebf6143959256a6.zip opensim-SC-b781a23c445bea0fd199eb756ebf6143959256a6.tar.gz opensim-SC-b781a23c445bea0fd199eb756ebf6143959256a6.tar.bz2 opensim-SC-b781a23c445bea0fd199eb756ebf6143959256a6.tar.xz |
In pCampbot PhysicsBehaviour.Close(), only cancel jumping if bot is connected
Diffstat (limited to 'OpenSim/Tools')
-rw-r--r-- | OpenSim/Tools/pCampBot/Behaviours/PhysicsBehaviour.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Tools/pCampBot/Behaviours/PhysicsBehaviour.cs b/OpenSim/Tools/pCampBot/Behaviours/PhysicsBehaviour.cs index 65a7c90..6fd2b7c 100644 --- a/OpenSim/Tools/pCampBot/Behaviours/PhysicsBehaviour.cs +++ b/OpenSim/Tools/pCampBot/Behaviours/PhysicsBehaviour.cs | |||
@@ -80,7 +80,8 @@ namespace pCampBot | |||
80 | 80 | ||
81 | public override void Close() | 81 | public override void Close() |
82 | { | 82 | { |
83 | Bot.Client.Self.Jump(false); | 83 | if (Bot.ConnectionState == ConnectionState.Connected) |
84 | Bot.Client.Self.Jump(false); | ||
84 | } | 85 | } |
85 | 86 | ||
86 | private string[] readexcuses() | 87 | private string[] readexcuses() |