Increment RandomCount for non-debugrec builds as well

Peter Wortmann 2011-07-17 13:37:27 +01:00
parent 90240f21ae
commit 53247e3c26
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ int Random(int iRange);
#else
inline int Random(int iRange)
{
RandomCount++;
if (iRange==0) return 0;
RandomHold = RandomHold * 214013L + 2531011L;
return (RandomHold >> 16) % iRange;