diff options
author | Justin Clark-Casey (justincc) | 2014-08-19 00:57:49 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-08-19 00:58:33 +0100 |
commit | ce74418c20bdd96b8dc74f8d2567758d4659ab87 (patch) | |
tree | f250995c4b2eb201a3dcb09dcf7fd4062985eadf /OpenSim/Tools/pCampBot | |
parent | Add clientstack.<scene>.OQRERequestsWaiting stat (diff) | |
download | opensim-SC-ce74418c20bdd96b8dc74f8d2567758d4659ab87.zip opensim-SC-ce74418c20bdd96b8dc74f8d2567758d4659ab87.tar.gz opensim-SC-ce74418c20bdd96b8dc74f8d2567758d4659ab87.tar.bz2 opensim-SC-ce74418c20bdd96b8dc74f8d2567758d4659ab87.tar.xz |
minor:Give console feedback when we sit or stand pCampbot bots.
Also only write console lines for actually connected bots.
Diffstat (limited to 'OpenSim/Tools/pCampBot')
-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 | ||