Updates, CTimer started

This commit is contained in:
Fire-Head
2019-05-29 21:02:58 +03:00
parent 31e7428bdf
commit 197767d1c8
16 changed files with 337 additions and 36 deletions

View File

@@ -1,3 +1,6 @@
class CGeneral
{
public:
@@ -11,5 +14,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(RAND_MAX + 1)); }
static Int32 GetRandomNumberInRange(Int32 low, Int32 high)
{ return low + (high - low)*(GetRandomNumber()/float(RAND_MAX + 1)); }
};