aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/pCampBot
diff options
context:
space:
mode:
Diffstat (limited to 'pCampBot')
-rw-r--r--pCampBot/BotManager.cs12
1 files changed, 3 insertions, 9 deletions
diff --git a/pCampBot/BotManager.cs b/pCampBot/BotManager.cs
index ee5f82d..0c7fa4e 100644
--- a/pCampBot/BotManager.cs
+++ b/pCampBot/BotManager.cs
@@ -76,11 +76,9 @@ namespace pCampBot
76 for (int i = 0; i < botcount; i++) 76 for (int i = 0; i < botcount; i++)
77 { 77 {
78 startupBot(i, cs); 78 startupBot(i, cs);
79
80
81 } 79 }
82
83 } 80 }
81
84 /// <summary> 82 /// <summary>
85 /// Add additional bots (and threads) to our bot pool 83 /// Add additional bots (and threads) to our bot pool
86 /// </summary> 84 /// </summary>
@@ -89,14 +87,13 @@ namespace pCampBot
89 { 87 {
90 int len = m_td.Length; 88 int len = m_td.Length;
91 Thread[] m_td2 = new Thread[len + botcount]; 89 Thread[] m_td2 = new Thread[len + botcount];
92 int i; 90 for (int i = 0; i < len; i++)
93 for (i = 0; i < len; i++)
94 { 91 {
95 m_td2[i] = m_td[i]; 92 m_td2[i] = m_td[i];
96 } 93 }
97 m_td = m_td2; 94 m_td = m_td2;
98 int newlen = len + botcount; 95 int newlen = len + botcount;
99 for (i = i; i < newlen; i++) 96 for (int i = len; i < newlen; i++)
100 { 97 {
101 startupBot(i, Previous_config); 98 startupBot(i, Previous_config);
102 } 99 }
@@ -119,7 +116,6 @@ namespace pCampBot
119 m_td[pos] = new Thread(pb.startup); 116 m_td[pos] = new Thread(pb.startup);
120 m_td[pos].Start(); 117 m_td[pos].Start();
121 m_lBot.Add(pb); 118 m_lBot.Add(pb);
122
123 } 119 }
124 120
125 /// <summary> 121 /// <summary>
@@ -136,7 +132,6 @@ namespace pCampBot
136 returnstring += chars.Substring(somthing.Next(chars.Length),1); 132 returnstring += chars.Substring(somthing.Next(chars.Length),1);
137 } 133 }
138 return returnstring; 134 return returnstring;
139
140 } 135 }
141 136
142 /// <summary> 137 /// <summary>
@@ -235,7 +230,6 @@ namespace pCampBot
235 /// <param name="ShowWhat"></param> 230 /// <param name="ShowWhat"></param>
236 public void Show(string ShowWhat) 231 public void Show(string ShowWhat)
237 { 232 {
238
239 } 233 }
240 } 234 }
241} 235}