not sure about rands but will test
This commit is contained in:
+2
-5
@@ -100,10 +100,7 @@ function bw_xor(a, b, v, r) {
|
||||
|
||||
# PRNG part
|
||||
|
||||
function mysrand(seed) {
|
||||
srand(seed)
|
||||
rng_lastrand = seed - 1
|
||||
}
|
||||
function mysrand(seed) { srand(seed); rng_lastrand = seed - 1 }
|
||||
|
||||
function myrand(r) {
|
||||
if(game["use_native_rand"] > 0) return int(rand() * 65536)
|
||||
@@ -349,7 +346,7 @@ function matchsys(s, d, i, p, cd) {
|
||||
# direct command implementations (may be further merged into the REPL directly)
|
||||
|
||||
# rand command implementation
|
||||
function dotweakrand() {game["use_native_rand"] = 1 - game["use_native_rand"] }
|
||||
function dotweakrand() { game["use_native_rand"] = 1 - game["use_native_rand"] }
|
||||
|
||||
# local command implementation
|
||||
function dolocal(d, i, p, si) {
|
||||
|
||||
Reference in New Issue
Block a user