aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools/pCampBot/BotManager.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Tools/pCampBot/BotManager.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Tools/pCampBot/BotManager.cs b/OpenSim/Tools/pCampBot/BotManager.cs
index 0aaa226..a4b7f16 100644
--- a/OpenSim/Tools/pCampBot/BotManager.cs
+++ b/OpenSim/Tools/pCampBot/BotManager.cs
@@ -165,18 +165,20 @@ namespace pCampBot
165 /// </summary> 165 /// </summary>
166 /// <param name="callbot"></param> 166 /// <param name="callbot"></param>
167 /// <param name="eventt"></param> 167 /// <param name="eventt"></param>
168 public void handlebotEvent(PhysicsBot callbot, EventType eventt) 168 private void handlebotEvent(PhysicsBot callbot, EventType eventt)
169 { 169 {
170 switch (eventt) 170 switch (eventt)
171 { 171 {
172 case EventType.CONNECTED: 172 case EventType.CONNECTED:
173 m_log.Info("[" + callbot.FirstName + " " + callbot.LastName + "]: Connected"); 173 m_log.Info("[" + callbot.FirstName + " " + callbot.LastName + "]: Connected");
174 numbots++; 174 numbots++;
175// m_log.InfoFormat("NUMBOTS {0}", numbots);
175 break; 176 break;
176 case EventType.DISCONNECTED: 177 case EventType.DISCONNECTED:
177 m_log.Info("[" + callbot.FirstName + " " + callbot.LastName + "]: Disconnected"); 178 m_log.Info("[" + callbot.FirstName + " " + callbot.LastName + "]: Disconnected");
178 m_td[m_lBot.IndexOf(callbot)].Abort(); 179 m_td[m_lBot.IndexOf(callbot)].Abort();
179 numbots--; 180 numbots--;
181// m_log.InfoFormat("NUMBOTS {0}", numbots);
180 if (numbots <= 0) 182 if (numbots <= 0)
181 Environment.Exit(0); 183 Environment.Exit(0);
182 break; 184 break;