forked from Mirrors/openclonk
Increment RandomCount for non-debugrec builds as well
parent
90240f21ae
commit
53247e3c26
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue