diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2019-05-29 20:05:50 +0200 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2019-05-29 20:05:50 +0200 |
commit | 64f9dfbb89db50eabe30c94a89b5a5e4b5730a5f (patch) | |
tree | 8544b4fe1f86bc9495aa51f66eb663735afb4332 /src | |
parent | Updates, CTimer started (diff) | |
download | re3-64f9dfbb89db50eabe30c94a89b5a5e4b5730a5f.tar re3-64f9dfbb89db50eabe30c94a89b5a5e4b5730a5f.tar.gz re3-64f9dfbb89db50eabe30c94a89b5a5e4b5730a5f.tar.bz2 re3-64f9dfbb89db50eabe30c94a89b5a5e4b5730a5f.tar.lz re3-64f9dfbb89db50eabe30c94a89b5a5e4b5730a5f.tar.xz re3-64f9dfbb89db50eabe30c94a89b5a5e4b5730a5f.tar.zst re3-64f9dfbb89db50eabe30c94a89b5a5e4b5730a5f.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/General.h | 4 | ||||
-rw-r--r-- | src/config.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/General.h b/src/General.h index 38737bd5..1dec2d54 100644 --- a/src/General.h +++ b/src/General.h @@ -14,8 +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()/float(RAND_MAX + 1)); } + { return low + (high - low)*(GetRandomNumber()/float(MY_RAND_MAX + 1)); } static Int32 GetRandomNumberInRange(Int32 low, Int32 high) - { return low + (high - low)*(GetRandomNumber()/float(RAND_MAX + 1)); } + { return low + (high - low)*(GetRandomNumber()/float(MY_RAND_MAX + 1)); } }; diff --git a/src/config.h b/src/config.h index 183a442f..8637814d 100644 --- a/src/config.h +++ b/src/config.h @@ -53,6 +53,6 @@ enum Config { NUMHOURS = 24, }; -#define USE_PS2_RAND FALSE +#define USE_PS2_RAND TRUE #endif |