mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-19 13:39:23 +00:00
fixed CParticle crash && RandTable
implemented PC codewarrior rand updated premake
This commit is contained in:
parent
2bf6674afc
commit
3ef6029764
9 changed files with 39 additions and 15 deletions
|
@ -45,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()/65536.0f); }
|
||||
{ return low + (high - low)*(GetRandomNumber()/float(MYRAND_MAX + 1)); }
|
||||
|
||||
static Int32 GetRandomNumberInRange(Int32 low, Int32 high)
|
||||
{ return low + (high - low)*(GetRandomNumber()/65536.0f); }
|
||||
{ return low + (high - low)*(GetRandomNumber()/float(MYRAND_MAX + 1)); }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue