summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-20 00:04:57 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-20 00:04:57 +0200
commit7e4c68382416229cf0a58637bd9f308a6def1caa (patch)
tree61be1bbcb1242293639c1ad5a4ce3e3e72aea271 /src/control/Script.cpp
parentsync with master (diff)
downloadre3-7e4c68382416229cf0a58637bd9f308a6def1caa.tar
re3-7e4c68382416229cf0a58637bd9f308a6def1caa.tar.gz
re3-7e4c68382416229cf0a58637bd9f308a6def1caa.tar.bz2
re3-7e4c68382416229cf0a58637bd9f308a6def1caa.tar.lz
re3-7e4c68382416229cf0a58637bd9f308a6def1caa.tar.xz
re3-7e4c68382416229cf0a58637bd9f308a6def1caa.tar.zst
re3-7e4c68382416229cf0a58637bd9f308a6def1caa.zip
Diffstat (limited to '')
-rw-r--r--src/control/Script.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index bfe2de34..4707042d 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -1675,13 +1675,7 @@ int8 CRunningScript::ProcessCommands100To199(int32 command)
return 0;
}
case COMMAND_GENERATE_RANDOM_INT:
-#ifdef FIX_BUGS
- // Not a very good fix but before switching to PS2 rand, it sort of works
- *GetPointerToScriptVariable(&m_nIp, VAR_GLOBAL) = CGeneral::GetRandomNumberInRange(0, 65535);
-#else
- /* On PC between 0 and 32767, even though script expects values between 0 and 65536 */
*GetPointerToScriptVariable(&m_nIp, VAR_GLOBAL) = CGeneral::GetRandomNumber();
-#endif
return 0;
case COMMAND_CREATE_CHAR:
{