mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Remove hsRand--we have rand support in the Cstdlib
This commit is contained in:
@ -435,7 +435,7 @@ int32_t plSpaceTreeMaker::AddLeaf(const hsBounds3Ext& worldBnd, hsBool disable)
|
||||
#define MF_DO_3D
|
||||
|
||||
#ifdef MF_DO_RAND
|
||||
#define MF_SETPOINT(pt,a,b,c) pt.Set(hsRand()/32767.f, hsRand()/32767.f, hsRand()/32767.f)
|
||||
#define MF_SETPOINT(pt,a,b,c) pt.Set(rand()/32767.f, rand()/32767.f, rand()/32767.f)
|
||||
#else // MF_DO_RAND
|
||||
#define MF_SETPOINT(pt,a,b,c) pt.Set(a,b,c)
|
||||
#endif // MF_DO_RAND
|
||||
|
@ -65,7 +65,7 @@ public:
|
||||
|
||||
static void ComputeDirection(float pitch, float yaw, hsVector3 &direction);
|
||||
static void ComputePitchYaw(float &pitch, float &yaw, const hsVector3 &dir);
|
||||
static inline float GetRandomVar() { return 2.0f * (float)hsRand() / RAND_MAX - 1; } // returns a num between +/- 1.0
|
||||
static inline float GetRandomVar() { return 2.0f * rand() / RAND_MAX - 1; } // returns a num between +/- 1.0
|
||||
};
|
||||
|
||||
class plSimpleParticleGenerator : public plParticleGenerator
|
||||
|
Reference in New Issue
Block a user