Merge pull request #2 from Fire-Head/master

Particle, ParticleMgr done
This commit is contained in:
aap
2019-05-29 23:17:41 +02:00
committed by GitHub
24 changed files with 3158 additions and 131 deletions

View File

@@ -1,3 +1,6 @@
class CGeneral
{
public:
@@ -43,5 +46,8 @@ public:
{ return myrand() & 0xFFFF; }
// Probably don't want to ever reach high
static float GetRandomNumberInRange(float low, float high)
{ return low + (high - low)*(GetRandomNumber()/65536.0f); }
{ return low + (high - low)*(GetRandomNumber()/float(MY_RAND_MAX + 1)); }
static Int32 GetRandomNumberInRange(Int32 low, Int32 high)
{ return low + (high - low)*(GetRandomNumber()/float(MY_RAND_MAX + 1)); }
};