diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2019-06-03 00:25:46 +0200 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2019-06-03 00:25:46 +0200 |
commit | 0c495cb18818c5aabd86fb59d230eada713997bd (patch) | |
tree | 1efa74ceaa2134691a803bcad370b848b6edac67 /src/re3.cpp | |
parent | Merge pull request #2 from GTAmodding/master (diff) | |
download | re3-0c495cb18818c5aabd86fb59d230eada713997bd.tar re3-0c495cb18818c5aabd86fb59d230eada713997bd.tar.gz re3-0c495cb18818c5aabd86fb59d230eada713997bd.tar.bz2 re3-0c495cb18818c5aabd86fb59d230eada713997bd.tar.lz re3-0c495cb18818c5aabd86fb59d230eada713997bd.tar.xz re3-0c495cb18818c5aabd86fb59d230eada713997bd.tar.zst re3-0c495cb18818c5aabd86fb59d230eada713997bd.zip |
Diffstat (limited to '')
-rw-r--r-- | src/re3.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/re3.cpp b/src/re3.cpp index f81c52a6..cff70ff4 100644 --- a/src/re3.cpp +++ b/src/re3.cpp @@ -21,7 +21,7 @@ WRAPPER void gtadelete(void *p) { EAXJMP(0x5A07E0); } void *operator new(size_t sz) { return gtanew(sz); } void operator delete(void *ptr) noexcept { gtadelete(ptr); } -#if USE_PS2_RAND == TRUE +#ifdef USE_PS2_RAND unsigned __int64 myrand_seed = 1; #else unsigned long int myrand_seed = 1; @@ -30,7 +30,7 @@ unsigned long int myrand_seed = 1; int myrand(void) { -#if USE_PS2_RAND == TRUE +#ifdef USE_PS2_RAND // Use our own implementation of rand, stolen from PS2 myrand_seed = 0x5851F42D4C957F2D * myrand_seed + 1; return ((myrand_seed >> 32) & 0x7FFFFFFF); |