awlite

POSIX AWK port of Text Elite game
git clone git://git.luxferre.top/awlite.git
Log | Files | Refs

commit 3db87a7265437ed1ae3b6feb1b7d6fbead4d24e4
parent 582d36d15760238b303e7d66aa044dd988e7ead5
Author: Luxferre <lux@ferre>
Date:   Sun, 21 Jan 2024 20:10:33 +0200

not sure about rands but will test

Diffstat:
Mawlite.awk | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/awlite.awk b/awlite.awk @@ -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) {