replaced random number generator with faster one

optimized breakable handling (need testing)
This commit is contained in:
Dmitriy 2015-06-09 15:45:34 +03:00
commit e5ce504176
15 changed files with 308 additions and 415 deletions

View file

@ -2423,7 +2423,7 @@ int Waypoint::AddGoalScore (int index, int other[4])
}
if (left.IsEmpty ())
index = other[g_randGen.Long (0, 3)];
index = other[Random.Long (0, 3)];
else
index = left.GetRandomElement ();