(svn r13427) [NoAI] -Fix: RandRange(max) of course can never return max, but the highest value is max - 1 (tnx Yexo)
--- a/src/ai/api/ai_base.hpp Sun Jun 08 22:38:29 2008 +0000
+++ b/src/ai/api/ai_base.hpp Sun Jun 08 23:10:34 2008 +0000
@@ -35,8 +35,8 @@
/**
* Get a random value in a range.
- * @param max The maximum value it will return.
- * @return A random value between 0 .. max.
+ * @param max The first number this function will never return (the maximum it returns is max - 1).
+ * @return A random value between 0 .. max - 1.
*/
static uint RandRange(uint max);