[Ohrrpgce] SVN: teeemcee/10465 Allow "seed random" while recording/replaying input. Rename mersenne_twi

subversion at HamsterRepublic.com subversion at HamsterRepublic.com
Wed Jul 25 08:36:48 PDT 2018


teeemcee
2018-07-25 08:36:47 -0700 (Wed, 25 Jul 2018)
546
Allow "seed random" while recording/replaying input. Rename mersenne_twister to reseed_prng and move to util.bas

Disallowing "seed random" will break games which rely on it while recording,
allowing it will break games while replaying. The correct way to get
reproduceable results would be to record the call in the .ohrkeys file - which
we don't do yet. So this is just half of a fix.

Also, improve quality of seeding. Before, calling "seed random" twice on the
same second would give the same result!

And silence mersenne_twistwe debug-spam.
---
U   wip/allmodex.bas
U   wip/allmodex.bi
U   wip/custom.bas
U   wip/game.bas
U   wip/scriptcommands.bas
U   wip/util.bas
U   wip/util.bi


More information about the Ohrrpgce mailing list