diff options
Diffstat (limited to 'OpenSim/Tools/pCampBot/BotManager.cs')
-rw-r--r-- | OpenSim/Tools/pCampBot/BotManager.cs | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/OpenSim/Tools/pCampBot/BotManager.cs b/OpenSim/Tools/pCampBot/BotManager.cs index b10f552..29739dc 100644 --- a/OpenSim/Tools/pCampBot/BotManager.cs +++ b/OpenSim/Tools/pCampBot/BotManager.cs | |||
@@ -690,7 +690,14 @@ namespace pCampBot | |||
690 | { | 690 | { |
691 | lock (m_bots) | 691 | lock (m_bots) |
692 | { | 692 | { |
693 | m_bots.ForEach(b => b.SitOnGround()); | 693 | foreach (Bot bot in m_bots) |
694 | { | ||
695 | if (bot.ConnectionState == ConnectionState.Connected) | ||
696 | { | ||
697 | MainConsole.Instance.OutputFormat("Sitting bot {0} on ground.", bot.Name); | ||
698 | bot.SitOnGround(); | ||
699 | } | ||
700 | } | ||
694 | } | 701 | } |
695 | } | 702 | } |
696 | 703 | ||
@@ -698,7 +705,14 @@ namespace pCampBot | |||
698 | { | 705 | { |
699 | lock (m_bots) | 706 | lock (m_bots) |
700 | { | 707 | { |
701 | m_bots.ForEach(b => b.Stand()); | 708 | foreach (Bot bot in m_bots) |
709 | { | ||
710 | if (bot.ConnectionState == ConnectionState.Connected) | ||
711 | { | ||
712 | MainConsole.Instance.OutputFormat("Standing bot {0} from ground.", bot.Name); | ||
713 | bot.Stand(); | ||
714 | } | ||
715 | } | ||
702 | } | 716 | } |
703 | } | 717 | } |
704 | 718 | ||