minor corrections

aoe takes too long
This commit is contained in:
MallocNull 2014-07-15 23:17:34 -05:00
parent c74eb2eb4e
commit deef45eae2
2 changed files with 3 additions and 1 deletions

View file

@ -34,6 +34,7 @@ namespace bot {
} else {
}
str = condstring.Substring((pair[0] == 0) ? 0 : _G.indexOfNth(condstring, ';', pair[0] + 1) + 1, _G.indexOfNth(condstring, ';', pair[1] + 2) + 1);
str = Int32.Parse(str.Substring(0, str.IndexOf(','))) - 1 + str.Substring(str.IndexOf(','));

View file

@ -96,7 +96,8 @@ namespace bot {
int fcount = 0;
for(int i = 0; i < str.Length; i++) {
if(str[i] == c) fcount++;
if(fcount == index) return i;
if(fcount == index)
return i;
}
return -1;
}