Going slightly off-topic:
My god the chances code is broken. I don't even know how it compiles.
As it is, I've found an infinite for loop that incorrectly assigns values to an array. Later on, the array breaks...again (assuming the code ever gets to there, which it by all means shouldn't).
Code:
for(chancesIndex=3; stringChances[chancesIndex][0]; chancesIndex+=2) //TODO: This seems like an infinite loop
{
chances[chancesIndex/2]=StringToInt(stringChances[chancesIndex])+chances[chancesIndex/2-1]; //chances[1.5]. What in the world?
}
chancesIndex-=2;
...*snip*
new i=GetRandomInt(0, chances[chancesIndex/2]);
Q_Q
__________________