diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2019-05-30 23:49:06 +0200 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2019-05-30 23:49:06 +0200 |
commit | 3ef6029764cfcba7e73bf62c19addbe1732480b8 (patch) | |
tree | ff4354c0a3056af8f580356787982021edf62963 /src/common.h | |
parent | added CText (diff) | |
download | re3-3ef6029764cfcba7e73bf62c19addbe1732480b8.tar re3-3ef6029764cfcba7e73bf62c19addbe1732480b8.tar.gz re3-3ef6029764cfcba7e73bf62c19addbe1732480b8.tar.bz2 re3-3ef6029764cfcba7e73bf62c19addbe1732480b8.tar.lz re3-3ef6029764cfcba7e73bf62c19addbe1732480b8.tar.xz re3-3ef6029764cfcba7e73bf62c19addbe1732480b8.tar.zst re3-3ef6029764cfcba7e73bf62c19addbe1732480b8.zip |
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h index a82e4c7f..47dd13f2 100644 --- a/src/common.h +++ b/src/common.h @@ -145,6 +145,12 @@ inline float sq(float x) { return x*x; } #define DEGTORAD(x) ((x) * PI / 180.0f) #define RADTODEG(x) ((x) * 180.0f / PI) +#if USE_PS2_RAND == TRUE +#define MYRAND_MAX 65535 +#else +#define MYRAND_MAX 32767 +#endif + int myrand(void); void mysrand(unsigned int seed); |