1- // Copyright (C) 2004 Id Software, Inc.
1+ // Copyright (C) 2004 Id Software, Inc.
22//
33#pragma once
44
55#include " ../game/gamesys/SysCvar.h" // pr_fixedseed,pr_fixedseed_value
66#include < new>
77#include " ../sys/sys_public.h"
88
9+ #include " PreyRun.hpp"
10+
911// My own Version of the Random Number Generator from Random.h
1012
1113/*
@@ -25,12 +27,12 @@ class prRandom
2527 operator idRandom&();
2628
2729 void SetSeed (int seed);
28- int GetSeed (void ) const ;
30+ int GetSeed () const ;
2931
30- int RandomInt (void ); // random integer in the range [0, MAX_RAND]
32+ int RandomInt (); // random integer in the range [0, MAX_RAND]
3133 int RandomInt (int max); // random integer in the range [0, max]
32- float RandomFloat (void ); // random number in the range [0.0f, 1.0f]
33- float CRandomFloat (void ); // random number in the range [-1.0f, 1.0f]
34+ float RandomFloat (); // random number in the range [0.0f, 1.0f]
35+ float CRandomFloat (); // random number in the range [-1.0f, 1.0f]
3436
3537 static const int MAX_RAND = 0x7fff ;
3638
@@ -112,7 +114,7 @@ PR_FINLINE prRandom::prRandom(int seed)
112114 this ->seed = seed;
113115}
114116
115- inline prRandom::operator idRandom () const
117+ PR_FINLINE prRandom::operator idRandom () const
116118{
117119 if (pr_fixedseed.GetBool ())
118120 {
@@ -121,7 +123,7 @@ inline prRandom::operator idRandom() const
121123 return idRandom (this ->seed );
122124}
123125
124- inline prRandom::operator idRandom&()
126+ PR_FINLINE prRandom::operator idRandom&()
125127{
126128 if (pr_fixedseed.GetBool ())
127129 {
0 commit comments