summaryrefslogtreecommitdiffstats
path: root/src/General.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-05-31 00:33:01 +0200
committeraap <aap@papnet.eu>2019-05-31 00:33:01 +0200
commitc4368b7432b4484d3f086afb5589fcddc62a1915 (patch)
tree2cce45d6ba4feabb229eb349c5b32beb22849d39 /src/General.h
parentadded CCredits (diff)
parentMerge pull request #3 from Fire-Head/master (diff)
downloadre3-c4368b7432b4484d3f086afb5589fcddc62a1915.tar
re3-c4368b7432b4484d3f086afb5589fcddc62a1915.tar.gz
re3-c4368b7432b4484d3f086afb5589fcddc62a1915.tar.bz2
re3-c4368b7432b4484d3f086afb5589fcddc62a1915.tar.lz
re3-c4368b7432b4484d3f086afb5589fcddc62a1915.tar.xz
re3-c4368b7432b4484d3f086afb5589fcddc62a1915.tar.zst
re3-c4368b7432b4484d3f086afb5589fcddc62a1915.zip
Diffstat (limited to 'src/General.h')
-rw-r--r--src/General.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/General.h b/src/General.h
index aa52bf4d..f957ab2f 100644
--- a/src/General.h
+++ b/src/General.h
@@ -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)); }
};