From cae773f32ab2cc69d0cd4502ffd56f3adee6c7c1 Mon Sep 17 00:00:00 2001
From: Jeff Ames
Date: Thu, 7 Feb 2008 04:55:40 +0000
Subject: Fix warning in BotManager.cs
---
pCampBot/BotManager.cs | 12 +++---------
1 file 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
for (int i = 0; i < botcount; i++)
{
startupBot(i, cs);
-
-
}
-
}
+
///
/// Add additional bots (and threads) to our bot pool
///
@@ -89,14 +87,13 @@ namespace pCampBot
{
int len = m_td.Length;
Thread[] m_td2 = new Thread[len + botcount];
- int i;
- for (i = 0; i < len; i++)
+ for (int i = 0; i < len; i++)
{
m_td2[i] = m_td[i];
}
m_td = m_td2;
int newlen = len + botcount;
- for (i = i; i < newlen; i++)
+ for (int i = len; i < newlen; i++)
{
startupBot(i, Previous_config);
}
@@ -119,7 +116,6 @@ namespace pCampBot
m_td[pos] = new Thread(pb.startup);
m_td[pos].Start();
m_lBot.Add(pb);
-
}
///
@@ -136,7 +132,6 @@ namespace pCampBot
returnstring += chars.Substring(somthing.Next(chars.Length),1);
}
return returnstring;
-
}
///
@@ -235,7 +230,6 @@ namespace pCampBot
///
public void Show(string ShowWhat)
{
-
}
}
}
--
cgit v1.1