summaryrefslogtreecommitdiffstats
path: root/source/cPassiveMonster.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/cPassiveMonster.cpp')
-rw-r--r--source/cPassiveMonster.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/cPassiveMonster.cpp b/source/cPassiveMonster.cpp
index bbfbc83ed..1f11484ef 100644
--- a/source/cPassiveMonster.cpp
+++ b/source/cPassiveMonster.cpp
@@ -1,4 +1,5 @@
#include "cPassiveMonster.h"
+#include "MersenneTwister.h"
cPassiveMonster::cPassiveMonster()
@@ -24,7 +25,8 @@ void cPassiveMonster::Tick(float a_Dt)
if(m_SeePlayerInterval > 1)
{
- int rem = rand() % 3 + 1; //check most of the time but miss occasionally
+ MTRand r1;
+ int rem = r1.randInt() % 3 + 1; //check most of the time but miss occasionally
m_SeePlayerInterval = 0.0;
if(rem >= 2) {