not sure about rands but will test
This commit is contained in:
+1
-4
@@ -100,10 +100,7 @@ function bw_xor(a, b, v, r) {
|
|||||||
|
|
||||||
# PRNG part
|
# PRNG part
|
||||||
|
|
||||||
function mysrand(seed) {
|
function mysrand(seed) { srand(seed); rng_lastrand = seed - 1 }
|
||||||
srand(seed)
|
|
||||||
rng_lastrand = seed - 1
|
|
||||||
}
|
|
||||||
|
|
||||||
function myrand(r) {
|
function myrand(r) {
|
||||||
if(game["use_native_rand"] > 0) return int(rand() * 65536)
|
if(game["use_native_rand"] > 0) return int(rand() * 65536)
|
||||||
|
|||||||
Reference in New Issue
Block a user