mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-17 22:49:22 +00:00
clean up
This commit is contained in:
parent
b705be0e87
commit
0a36d49d2c
20 changed files with 115 additions and 302 deletions
|
@ -1,5 +1,4 @@
|
|||
|
||||
|
||||
#pragma once
|
||||
|
||||
class CGeneral
|
||||
{
|
||||
|
@ -46,8 +45,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()/float(MY_RAND_MAX + 1)); }
|
||||
{ return low + (high - low)*(GetRandomNumber()/65536.0f); }
|
||||
|
||||
static Int32 GetRandomNumberInRange(Int32 low, Int32 high)
|
||||
{ return low + (high - low)*(GetRandomNumber()/float(MY_RAND_MAX + 1)); }
|
||||
{ return low + (high - low)*(GetRandomNumber()/65536.0f); }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue