summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-05-30 00:47:33 +0200
committeraap <aap@papnet.eu>2019-05-30 00:47:33 +0200
commit0a36d49d2cd4346dc99a52155e2599917c1e6a42 (patch)
tree9d07fa357fca32b4dfa56b6f52584fdf2c349a30 /src/main.cpp
parentMerge pull request #2 from Fire-Head/master (diff)
downloadre3-0a36d49d2cd4346dc99a52155e2599917c1e6a42.tar
re3-0a36d49d2cd4346dc99a52155e2599917c1e6a42.tar.gz
re3-0a36d49d2cd4346dc99a52155e2599917c1e6a42.tar.bz2
re3-0a36d49d2cd4346dc99a52155e2599917c1e6a42.tar.lz
re3-0a36d49d2cd4346dc99a52155e2599917c1e6a42.tar.xz
re3-0a36d49d2cd4346dc99a52155e2599917c1e6a42.tar.zst
re3-0a36d49d2cd4346dc99a52155e2599917c1e6a42.zip
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 853308a1..955b33ed 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -24,37 +24,22 @@ void operator delete(void *ptr) noexcept { gtadelete(ptr); }
unsigned __int64 myrand_seed = 1;
-
-int _cwrand() // original codewarrior rand
-{
- return ((int (__cdecl *)())0x5A41D0)();
-}
-
int
myps2rand(void)
{
- return _cwrand();
myrand_seed = 0x5851F42D4C957F2D * myrand_seed + 1;
return ((myrand_seed >> 32) & 0x7FFFFFFF);
}
int myrand(void)
{
-#if USE_PS2_RAND == TRUE
return myps2rand();
-#else
- return _cwrand();
-#endif
}
void
mysrand(unsigned int seed)
{
-#if USE_PS2_RAND == TRUE
myrand_seed = seed;
-#else
- ;
-#endif
}
// platform stuff