--- a/src/ai/api/ai_base.cpp Sat Jul 14 23:35:46 2007 +0000
+++ b/src/ai/api/ai_base.cpp Sat Jul 14 23:49:31 2007 +0000
@@ -4,7 +4,7 @@
#include "ai_base.hpp"
-uint32 AIBase::Rand()
+/* static */ uint32 AIBase::Rand()
{
/* We pick RandomRange if we are in SP (so when saved, we do the same over and over)
* but we pick InteractiveRandomRange if we are a network_server or network-client. */
@@ -12,7 +12,7 @@
return ::Random();
}
-uint AIBase::RandRange(uint max)
+/* static */ uint AIBase::RandRange(uint max)
{
/* We pick RandomRange if we are in SP (so when saved, we do the same over and over)
* but we pick InteractiveRandomRange if we are a network_server or network-client. */
@@ -20,7 +20,7 @@
return ::RandomRange(max);
}
-bool AIBase::Chance(uint out, uint max)
+/* static */ bool AIBase::Chance(uint out, uint max)
{
- return (uint16)this->Rand() <= (uint16)((65536 * out) / max);
+ return (uint16)AIBase::Rand() <= (uint16)((65536 * out) / max);
}