Fix warning in BotManager.cs

ThreadPoolClientBranch
Jeff Ames 2008-02-07 04:55:40 +00:00
parent 87e2dd7c80
commit cae773f32a
1 changed files with 3 additions and 9 deletions

View File

@ -76,11 +76,9 @@ namespace pCampBot
for (int i = 0; i < botcount; i++) for (int i = 0; i < botcount; i++)
{ {
startupBot(i, cs); startupBot(i, cs);
} }
} }
/// <summary> /// <summary>
/// Add additional bots (and threads) to our bot pool /// Add additional bots (and threads) to our bot pool
/// </summary> /// </summary>
@ -89,14 +87,13 @@ namespace pCampBot
{ {
int len = m_td.Length; int len = m_td.Length;
Thread[] m_td2 = new Thread[len + botcount]; Thread[] m_td2 = new Thread[len + botcount];
int i; for (int i = 0; i < len; i++)
for (i = 0; i < len; i++)
{ {
m_td2[i] = m_td[i]; m_td2[i] = m_td[i];
} }
m_td = m_td2; m_td = m_td2;
int newlen = len + botcount; int newlen = len + botcount;
for (i = i; i < newlen; i++) for (int i = len; i < newlen; i++)
{ {
startupBot(i, Previous_config); startupBot(i, Previous_config);
} }
@ -119,7 +116,6 @@ namespace pCampBot
m_td[pos] = new Thread(pb.startup); m_td[pos] = new Thread(pb.startup);
m_td[pos].Start(); m_td[pos].Start();
m_lBot.Add(pb); m_lBot.Add(pb);
} }
/// <summary> /// <summary>
@ -136,7 +132,6 @@ namespace pCampBot
returnstring += chars.Substring(somthing.Next(chars.Length),1); returnstring += chars.Substring(somthing.Next(chars.Length),1);
} }
return returnstring; return returnstring;
} }
/// <summary> /// <summary>
@ -235,7 +230,6 @@ namespace pCampBot
/// <param name="ShowWhat"></param> /// <param name="ShowWhat"></param>
public void Show(string ShowWhat) public void Show(string ShowWhat)
{ {
} }
} }
} }