not sure about rands but will test

This commit is contained in:
Luxferre
2024-01-21 20:10:33 +02:00
parent 582d36d157
commit 3db87a7265
+2 -5
View File
@@ -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) {